action_scheduler_queue_runner_flush_cache хук-фильтрWC 1.0

Running large batches can eat up memory, as WP adds data to its object cache.

If using a persistent object store, this has the side effect of flushing that as well, so this is disabled by default. To enable:

add_filter( action_scheduler_queue_runner_flush_cache, '__return_true' );

Использование

add_filter( 'action_scheduler_queue_runner_flush_cache', 'wp_kama_action_scheduler_queue_runner_flush_cache_filter' );

/**
 * Function for `action_scheduler_queue_runner_flush_cache` filter-hook.
 * 
 * @param  $false 
 *
 * @return 
 */
function wp_kama_action_scheduler_queue_runner_flush_cache_filter( $false ){

	// filter...
	return $false;
}
$false
-

Где вызывается хук

ActionScheduler_QueueRunner::clear_caches()
action_scheduler_queue_runner_flush_cache
woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php 184
if ( ! wp_using_ext_object_cache() || apply_filters( 'action_scheduler_queue_runner_flush_cache', false ) ) {

Где используется хук в WooCommerce

Использование не найдено.