WordPress at Your Fingertips
function is not described

ActionScheduler_QueueRunner::clear_caches() protected 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' );

{} It's a method of the class: ActionScheduler_QueueRunner{}

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->clear_caches();

Code of ActionScheduler_QueueRunner::clear_caches() WC 6.1.1

protected function clear_caches() {
	if ( ! wp_using_ext_object_cache() || apply_filters( 'action_scheduler_queue_runner_flush_cache', false ) ) {
		wp_cache_flush();
	}
}