Filters whether to invalidate a file from the opcode cache.
true, $filepath
Sortie :
@param bool $will_invalidate Whether WordPress will invalidate `$filepath`. Default true. @param string $filepath The path to the PHP file to invalidate.
// Modifier la valeur avec le filtre 'wp_opcache_invalidate_file'
add_filter('wp_opcache_invalidate_file', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...