domain_mapping_supercachedir()
No Hooks.
Returns
null. Nothing (null).
Usage
domain_mapping_supercachedir( $dir );
- $dir(required)
- .
domain_mapping_supercachedir() domain mapping supercachedir code WPSCache 3.1.0
function domain_mapping_supercachedir( $dir ) {
global $cache_path;
if ( ! function_exists( 'domain_mapping_warning' ) ) {
return $dir;
}
$siteurl = domain_mapping_siteurl( false );
if ( ! $siteurl ) {
return $dir;
}
$sitedir = trailingslashit( preg_replace( '`^(https?:)?//`', '', $siteurl ) );
return trailingslashit( $cache_path . 'supercache/' . $sitedir );
}