supercache_dir

supercache_dir

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-super-cache.1.9.4

apply_filters('supercache_dir') is found 1 times:

  • /wp-cache-phase2.php line 760
    		$hostname = (string) parse_url( get_option( 'home' ), PHP_URL_HOST );
    	}
    	$dir = preg_replace( '/:.*$/', '', $hostname ) . $uri; // To avoid XSS attacks
    	if ( function_exists( 'apply_filters' ) ) {
    		$dir = apply_filters( 'supercache_dir', $dir );
    	} else {
    		$dir = do_cacheaction( 'supercache_dir', $dir );
    	}
    	$dir = $cache_path . 'supercache/' . $dir . '/';
    	if ( is_array( $cached_direct_pages ) && in_array( $_SERVER['REQUEST_URI'], $cached_direct_pages ) ) {
    		$dir = ABSPATH . $uri . '/';