do_createsupercache

do_createsupercache

Hook Type: filter
See hook in action

See hook in core

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

apply_filters('do_createsupercache') is found 2 times:

  • /wp-cache-phase2.php line 1493
    	if ( ( $_SERVER['REQUEST_METHOD'] !== 'POST' && empty( $_POST ) ) && $super_cache_enabled && $cache_rebuild_files ) {
    		$user_info = wp_cache_get_cookies_values();
    
    		if ( empty( $user_info )
    			|| true === apply_filters( 'do_createsupercache', $user_info )
    		) {
    			wpcache_do_rebuild( get_current_url_supercache_dir() );
    		}
    	}
    
    	schedule_wp_gc();
    
  • /wp-cache-phase2.php line 2282
    			return wp_cache_maybe_dynamic( $buffer );
    		}
    	} else {
    		$user_info = wp_cache_get_cookies_values();
    		$do_cache  = apply_filters( 'do_createsupercache', $user_info );
    		if (
    			$super_cache_enabled &&
    			(
    				$user_info == '' ||
    				$do_cache === true
    			)
    

See this hook used in plugins: