supercache_filename()WPSCache 1.0

Hooks from the function

Return

null. Nothing (null).

Usage

supercache_filename();

supercache_filename() code WPSCache 1.12.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 = '';
	}
	$filename = 'index' . $extra_str . '.html';

	return $filename;
}