supercache_filename()
Hooks from the function
Returns
null. Nothing (null).
Usage
supercache_filename();
supercache_filename() supercache filename code WPSCache 3.1.1
function supercache_filename() {
global $cached_direct_pages;
// Add support for https and http caching
$is_https = wpsc_is_https();
$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 = '';
}
// The filename must always be a single path segment. Filters above may
// return arbitrary data, so restrict it to a safe set of characters.
$extra_str = preg_replace( '/[^a-zA-Z0-9_-]/', '', (string) $extra_str );
$filename = 'index' . $extra_str . '.html';
return $filename;
}