do_createsupercache

do_createsupercache

Hook Type: filter
See hook in action

See hook in core

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

apply_filters('do_createsupercache') is found 2 times:

  • /wp-cache-phase2.php line 1601
    1597
    1598
    1599
    1600
    1601
    1602
    1603
    1604
    1605
    1606
    1607
    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 2394
    2390
    2391
    2392
    2393
    2394
    2395
    2396
    2397
    2398
    2399
    2400
            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: