Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mau.rec

    (@maurec)

    TEST CASE: Changing theme on one site of the network the supercache dir has been emptied completely,not only for that site.
    NOTE: $cache_max_time = 0; (Never expire)

    WP SUPER CACHE 1.3 SETTINGS
    ===========================

    $wp_super_cache_comments = '1'; //Added by WP-Cache Manager
    $wp_cache_preload_on = 1; //Added by WP-Cache Manager
    $wp_cache_preload_taxonomies = 0; //Added by WP-Cache Manager
    $wp_cache_preload_email_volume = 'less'; //Added by WP-Cache Manager
    $wp_cache_preload_email_me = 0; //Added by WP-Cache Manager
    $wp_cache_preload_interval = 0; //Added by WP-Cache Manager
    $wp_cache_preload_posts = '34'; //Added by WP-Cache Manager
    $cache_schedule_interval = 'daily'; //Added by WP-Cache Manager
    $cache_gc_email_me = 0; //Added by WP-Cache Manager
    $cache_scheduled_time = '00:00'; //Added by WP-Cache Manager
    $wp_cache_mobile_groups = ''; //Added by WP-Cache Manager
    $wp_cache_mobile_prefixes = 'w3c , w3c-, acs-, alav, alca, amoi, audi, avan, benq, bird, blac, blaz, brew, cell, cldc, cmd-, dang, doco, eric, hipt, htc_, inno, ipaq, ipod, jigs, kddi, keji, leno, lg-c, lg-d, lg-g, lge-, lg/u, maui, maxo, midp, mits, mmef, mobi, mot-, moto, mwbp, nec-, newt, noki, palm, pana, pant, phil, play, port, prox, qwap, sage, sams, sany, sch-, sec-, send, seri, sgh-, shar, sie-, siem, smal, smar, sony, sph-, symb, t-mo, teli, tim-, tosh, tsm-, upg1, upsi, vk-v, voda, wap-, wapa, wapi, wapp, wapr, webc, winw, winw, xda , xda-'; //Added by WP-Cache Manager
    $wp_cache_refresh_single_only = '0'; //Added by WP-Cache Manager
    $wp_cache_make_known_anon = 0; //Added by WP-Cache Manager
    $wp_cache_mod_rewrite = 1; //Added by WP-Cache Manager
    $wp_cache_front_page_checks = 0; //Added by WP-Cache Manager
    $wp_cache_mfunc_enabled = 0; //Added by WP-Cache Manager
    $wp_supercache_304 = 0; //Added by WP-Cache Manager
    $wp_cache_no_cache_for_get = 0; //Added by WP-Cache Manager
    $wp_cache_disable_utf8 = 0; //Added by WP-Cache Manager
    $cache_time_interval = '3600'; //Added by WP-Cache Manager
    $cache_schedule_type = 'time'; //Added by WP-Cache Manager
    $cache_page_secret = 'd7f52b7db4577105ff64d1ddde55cd0e'; //Added by WP-Cache Manager
    $wp_cache_slash_check = 1; //Added by WP-Cache Manager
    if ( ! defined('WPCACHEHOME') )
            define( 'WPCACHEHOME', WP_CONTENT_DIR . "/plugins/wp-super-cache/" ); //Added by WP-Cache Manager
    
    $cache_compression = 0; // Super cache compression
    $cache_enabled = true; //Added by WP-Cache Manager
    $super_cache_enabled = true; //Added by WP-Cache Manager
    
    $cache_max_time = 0; //Added by WP-Cache Manager
    //$use_flock = true; // Set it true or false if you know what to use
    $cache_path = WP_CONTENT_DIR . '/cache/';
    $file_prefix = 'wp-cache-';
    $ossdlcdn = 0;

    WP SUPER CACHE 1.3 CACHE BEFORE CHANGING ONE SITE THEME (ADMNISTRATOR ROLE FOR HIS SITE:blogsite.blog-dev.domain.net)
    =======================================================================================

    -bash-4.1$ pwd
    /doc_root/wp-content/cache/supercache
    
    -bash-4.1$ ls -lrt
    total 32
    
    drwxr-xr-x 2 httpd www 4096 Dec  2 10:27 blogsite.blog-dev.domain.net
    drwxr-xr-x 2 httpd www 4096 Dec  2 10:28 blogsite2.blog-dev.domain.net
    drwxr-xr-x 3 httpd www 4096 Dec  2 10:30 blogsite3.blog-dev.domain.net

    WP SUPER CACHE 1.3 CACHE LOG
    ==================================================

    09:37:13 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_/ Cookie detected: wordpress_logged_in_254caaa56aa85fe62dac54f14572346a
    09:37:13 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e wp_cache_check_mobile:
    09:37:13 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e supercache dir: /docroot/wp-content/cache/supercache/blogsite.blog-dev.domain.net/wp-admin/themes.php/
    09:37:13 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e No wp-cache file exists. Must generate a new one.
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_254caaa56aa85fe62dac54f14572346a/ Cookie detected: wordpress_logged_in_254caaa56aa85fe62dac54f14572346a
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e In WP Cache Phase 2
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e Setting up WordPress actions
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e Not caching wp-admin requests.
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e Clearing all cached files in wp_cache_clear_cache()
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/supercache/blogsite.blog-dev.domain.net/index.html
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/supercache/blogsite.blog-dev.domain.net, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/supercache/blogsite2.blog-dev.domain.net/index.html
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/supercache/blogsite2.blog-dev.domain.net, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/supercache/blogsite3.blog-dev.domain.net/sitemap_index.xml/index.html
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/supercache/blogsite3.blog-dev.domain.net/sitemap_index.xml, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/supercache/blogsite3.blog-dev.domain.net/index.html
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/supercache/blogsite3.blog-dev.domain.net, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/blogs/blog-dev.domain.net/meta, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/blogs/blog-dev.domain.net, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/blogs/blogsite.blog-dev.domain.net/wp-cache-blogsite.blog-dev.domain.net215f4aab7a4f800526f5332391cfea26.html
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/blogs/blogsite.blog-dev.domain.net/meta/wp-cache-blogsite.blog-dev.domain.net215f4aab7a4f800526f5332391cfea26.meta
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/blogs/blogsite.blog-dev.domain.net/meta, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/blogs/blogsite.blog-dev.domain.net, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e gc: deleted /docroot/wp-content/cache/blogs, forced delete
    09:37:14 /wp-admin/themes.php?action=activate&template=twentyten&stylesheet=twentyten&_wpnonce=cbacf89a3e prune_super_cache: deleted /docroot/wp-content/cache/9a71b2c3c74d5a7ebeda3396a8b6100f.txt

    WP SUPER CACHE 1.3 CACHE AFTER CHANGING ONE SITE THEME
    ================================================================

    -bash-4.1$ pwd
    /docroot/wp-content/cache/supercache
    
    -bash-4.1$ ls -l
    total 0
    Thread Starter mau.rec

    (@maurec)

    Hi, maybe there is a bug on wp super cache (1.3 and 1.4 too) when installed on multisite network. When a user change theme or there is a menu refresh all dir supercache is emptied. Initially I thought to a problem on expire time.

    I’ve found a soluzion, in file wp-cache-phase2.php add the new line:

    function wp_cache_clear_cache( $blog_id = 0 ) {
    //NEW LINE
    $blog_id = get_current_blog_id();

    }

    It was like if a normal administrator use blog_id=0 that is only for super administrator.
    I hope this will be fixed in wp super cache next release.

    Thread Starter mau.rec

    (@maurec)

    I explain more details: WordPress in running on 4 frontend working on the same doc root shared by NFS. When started wp super cache had 3600seconds as $cache_max_time. After changing to 0 (no expire) still I see deleted file in cache after one hour. Any idea? Is there someone who knows the reason?

Viewing 3 replies - 1 through 3 (of 3 total)