When an external object cache is in use, and when wp_cache_flush_runtime() is not available, then normally the cache will not be flushed after processing a batch of actions (to avoid a performance penalty for other processes). This filter makes it possible to override this behavior and always flush the cache, even if an external object cache is in use.
false
Sortie :
@param bool $flush_cache If the cache should be flushed.
// Modifier la valeur avec le filtre 'action_scheduler_queue_runner_flush_cache'
add_filter('action_scheduler_queue_runner_flush_cache', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(false) {
// Modifier la valeur
return false;
}
Chargement des actualités...