wp_cache_preload_taxonomies

wp_cache_preload_taxonomies

Hook Type: filter

See hook in core

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

apply_filters('wp_cache_preload_taxonomies') is found 1 times:

  • /wp-cache.php line 3216
    3212
    3213
    3214
    3215
    3216
    3217
    3218
    3219
    3220
    3221
    3222
    if ( $wp_cache_preload_posts == 'all' || $c < $wp_cache_preload_posts ) {
        wp_cache_debug( 'wp_cron_preload_cache: doing taxonomy preload.', 5 );
        $permalink_counter_msg = $cache_path . "preload_permalink.txt";
        if ( isset( $wp_cache_preload_taxonomies ) && $wp_cache_preload_taxonomies ) {
            $taxonomies = apply_filters( 'wp_cache_preload_taxonomies', array( 'post_tag' => 'tag', 'category' => 'category' ) );
            foreach( $taxonomies as $taxonomy => $path ) {
                $taxonomy_filename = $cache_path . "taxonomy_" . $taxonomy . ".txt";
                if ( $c == 0 )
                    @unlink( $taxonomy_filename );
     
                if ( false == @file_exists( $taxonomy_filename ) ) {