supercache_filename() WPSCache 1.0
Хуки из функции
Возвращает
Null. Ничего.
Использование
supercache_filename();
Код supercache_filename() supercache filename WPSCache 1.7.1
function supercache_filename() {
global $cached_direct_pages;
//Add support for https and http caching
$is_https = ( ( isset( $_SERVER[ 'HTTPS' ] ) && 'on' == strtolower( $_SERVER[ 'HTTPS' ] ) ) || ( isset( $_SERVER[ 'HTTP_X_FORWARDED_PROTO' ] ) && 'https' == strtolower( $_SERVER[ 'HTTP_X_FORWARDED_PROTO' ] ) ) ); //Also supports https requests coming from an nginx reverse proxy
$extra_str = $is_https ? '-https' : '';
if ( function_exists( "apply_filters" ) ) {
$extra_str = apply_filters( 'supercache_filename_str', $extra_str );
} else {
$extra_str = do_cacheaction( 'supercache_filename_str', $extra_str );
}
if ( is_array( $cached_direct_pages ) && in_array( $_SERVER[ 'REQUEST_URI' ], $cached_direct_pages ) ) {
$extra_str = '';
}
$filename = 'index' . $extra_str . '.html';
return $filename;
}