domain_mapping_actions()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

domain_mapping_actions();

Code of domain_mapping_actions() WPSCache 1.8

function domain_mapping_actions() {
	global $cache_domain_mapping;

	$cache_domain_mapping = (int) $cache_domain_mapping;
	if ( 1 !== $cache_domain_mapping ) {
		return;
	}

	add_filter( 'wp_super_cache_supercachedir', 'domain_mapping_supercachedir' );
	add_action( 'gc_cache', 'domain_mapping_gc_cache', 10, 2 );
}