next_preload_message() WPSCache 1.0
No Hooks.
Return
Null. Nothing.
Usage
next_preload_message( $hook, $text, $limit );
Code of next_preload_message() next preload message WPSCache 1.7.1
function next_preload_message( $hook, $text, $limit = 0 ) {
global $currently_preloading, $wp_cache_preload_interval;
if ( $next_preload = wp_next_scheduled( $hook ) ) {
$next_time = $next_preload - time();
if ( $limit != 0 && $next_time > $limit )
return false;
$h = $m = $s = 0;
if ( $next_time > 0 ) {
$m = (int)($next_time / 60);
$s = $next_time % 60;
$h = (int)($m / 60); $m = $m % 60;
}
if ( $next_time > 0 && $next_time < ( 60 * $wp_cache_preload_interval ) )
echo '<div class="notice notice-warning"><p>' . sprintf( $text, $h, $m, $s ) . '</p></div>';
if ( ( $next_preload - time() ) <= 60 )
$currently_preloading = true;
}
}