wp_cache_cleared

wp_cache_cleared

Hook Type: action

See hook in core

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

do_action('wp_cache_cleared') is found 4 times:

  • /wp-cache-phase2.php line 2631
    2627
    2628
    2629
    2630
    2631
    2632
    2633
    2634
    2635
    2636
                    }
                }
            }
            closedir( $handle );
            do_action( 'wp_cache_cleared' );
        }
        wp_cache_writers_exit();
    }
     
    function prune_super_cache( $directory, $force = false, $rename = false ) {
  • /wp-cache-phase2.php line 3090
    3086
    3087
    3088
    3089
    3090
    3091
    3092
    3093
    3094
    3095
    3096
            prune_super_cache( get_supercache_dir( $blog_id ), true );
            prune_super_cache( $cache_path . 'blogs/', true );
        }
     
        do_action( 'wp_cache_cleared' );
    }
     
    function wpsc_delete_post_archives( $post ) {
        $post = @get_post( $post );
        if ( ! is_object( $post ) ) {
            return;
  • /wp-cache-phase2.php line 3243
    3239
    3240
    3241
    3242
    3243
    3244
    3245
    3246
    3247
    3248
    3249
        wp_cache_debug( "wp_cache_post_edit: Clearing cache $blog_cache_dir and {$cache_path}supercache/ on post edit per config.", 2 );
        prune_super_cache( $blog_cache_dir, true );
        prune_super_cache( get_supercache_dir(), true );
     
        do_action( 'wp_cache_cleared' );
    } else {
        $action = current_filter();
        wp_cache_debug( "wp_cache_post_edit: Clearing cache for post $post_id on {$action}", 2 );
        wp_cache_post_change( $post_id );
        wpsc_delete_post_archives( $post_id ); // delete related archive pages.
    }
  • /wp-cache.php line 2781
    2778
    2779
    2780
    2781
    2782
    2783
    2784
    2785
    2786
    2787
    function wp_cache_clean_cache( $file_prefix, $all = false ) {
        global $cache_path, $supercachedir, $blog_cache_dir;
     
        do_action( 'wp_cache_cleared' );
     
        if ( $all == true && wpsupercache_site_admin() && function_exists( 'prune_super_cache' ) ) {
            prune_super_cache( $cache_path, true );
            return true;
        }
        if ( $supercachedir == '' )