wp_cache_postload()
No Hooks.
Returns
null. Nothing (null).
Usage
wp_cache_postload();
wp_cache_postload() wp cache postload code WPSCache 3.1.0
function wp_cache_postload() {
global $cache_enabled, $wp_super_cache_late_init;
global $wp_cache_request_uri;
if ( empty( $wp_cache_request_uri ) ) {
wp_cache_debug( 'wp_cache_postload: no request uri configured. Not running.' );
return false;
}
// have to sanitize here because formatting.php is loaded after wp_cache_request_uri is set
$wp_cache_request_uri = esc_url_raw( wp_unslash( $wp_cache_request_uri ) );
if ( ! $cache_enabled ) {
return true;
}
if ( isset( $wp_super_cache_late_init ) && true == $wp_super_cache_late_init ) {
wp_cache_debug( 'Supercache Late Init: add wp_cache_serve_cache_file to init', 3 );
add_action( 'init', 'wp_cache_late_loader', 9999 );
} else {
wp_super_cache_init();
wp_cache_phase2();
}
}