wp_cache_cleared

wp_cache_cleared

Hook Type: action

See hook in core

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

do_action('wp_cache_cleared') is found 4 times:

  • /wp-cache-phase2.php line 2520
    				}
    			}
    		}
    		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 2971
    		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 3118
    		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 2662
     
    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 == '' )