check_up_on_preloading()WPSCache 1.0

Хуков нет.

Возвращает

null. Ничего.

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

check_up_on_preloading();

Код check_up_on_preloading() WPSCache 1.9.4

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' ) ) {
		if ( is_admin() ) {
			if ( get_option( 'wpsc_preload_restart_email' ) < ( time() - 86400 ) ) {
				wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Preload may have stalled.', 'wp-super-cache' ), get_bloginfo( 'url' ) ), sprintf( __( "Preload has been restarted.\n%s", 'wp-super-cache' ), admin_url( "options-general.php?page=wpsupercache" ) ) );
				update_option( 'wpsc_preload_restart_email', time() );
			}
			add_action( 'admin_notices', 'wpsc_preload_restart_notice' );
		}
		wp_schedule_single_event( time() + 30, 'wp_cache_preload_hook' );
	}
}