A WordPress-centric search engine for devs and theme authors



wp_opcache_invalidate_file ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_opcache_invalidate_file', true, $filepath )
Parameters: (2)
  • (bool) $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
    Required: Yes
  • (string) $filepath The path to the PHP file to invalidate.
    Required: Yes
Defined at:
Codex:

Filters whether to invalidate a file from the opcode cache.





Source

if ( apply_filters( 'wp_opcache_invalidate_file', true, $filepath ) ) {