wp_cache_postload()WPSCache 1.0

Хуков нет.

Возвращает

null. Ничего (null).

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

wp_cache_postload();

Код wp_cache_postload() WPSCache 1.12.0

function wp_cache_postload() {
	global $cache_enabled, $wp_super_cache_late_init;
	global $wp_cache_request_uri;

	if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) {
		wp_cache_debug( 'wp_cache_postload: DONOTCACHEPAGE defined. Not running.' );
		return false;
	}

	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 ( wpsc_is_backend() ) {
		wp_cache_debug( 'wp_cache_postload: backend detected, not running' );
		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();
	}
}