WordPress at a glance
function is not described

domain_mapping_gc_cache() WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

domain_mapping_gc_cache( $function, $directory );
$function (required)
-
$directory (required)
-

Code of domain_mapping_gc_cache() WPSCache 1.7.3

<?php
function domain_mapping_gc_cache( $function, $directory ) {
	global $cache_path;

	if ( ! function_exists( 'domain_mapping_warning' ) ) {
		return;
	}

	$siteurl = domain_mapping_siteurl( false );
	if ( ! $siteurl ) {
		return;
	}

	$sitedir = trailingslashit( preg_replace( '`^(https?:)?//`', '', $siteurl ) );

	if ( 'homepage' === $directory ) {
		$directory = '';
	}

	switch ( $function ) {
		case 'rebuild':
			wpsc_rebuild_files( $cache_path . 'supercache/' . $sitedir . $directory );
			break;
		case 'prune':
			wpsc_delete_files( $cache_path . 'supercache/' . $sitedir . $directory );
			break;
	}
}