check_up_on_preloading()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

check_up_on_preloading();

check_up_on_preloading() code WPSCache 1.12.1

function check_up_on_preloading() {
	$value = get_option( 'preload_cache_counter' );
	if ( is_array( $value ) && $value['c'] > 0 && ( time() - $value['t'] ) > 3600 && false === wp_next_scheduled( 'wp_cache_preload_hook' ) ) {
		wp_schedule_single_event( time() + 5, 'wp_cache_preload_hook' );
	}
}