get_oc_key()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

get_oc_key( $url );
$url **
-
Default: false

Code of get_oc_key() WPSCache 1.8

function get_oc_key( $url = false ) {
	global $wp_cache_gzip_encoding, $WPSC_HTTP_HOST;

	if ( $url ) {
		$key = intval( $_SERVER['SERVER_PORT'] ) . preg_replace( '/:.*$/', '', $WPSC_HTTP_HOST ) . $url;
	} else {
		$key = get_current_url_supercache_dir();
	}
	return $key . $wp_cache_gzip_encoding . get_oc_version();
}