• Resolved DickRaney

    (@dickraney)


    My cache contents looks like this:

    Cache Contents
    WP-Cache (15.39KB)
    
    35 Cached Pages
    0 Expired Pages
    WP-Super-Cache (0KB)
    
    0 Cached Pages
    0 Expired Pages

    Why is WP-Super-Cache (0KB) while Wp-Cache seems to be working and has content?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • WP Cache files are generated when your visitor has a cookie for your website. In the past that usually meant they were logged in users. Unfortunately nowadays that might also mean they clicked the “Accept” button on your cookie banner. That usually sets a cookie in the browser. That doesn’t explain why there are no WP-Super-Cache files. Maybe there’s a plugin or code on your site that sets a cookie for every visitor?

    I would enable the debug log in the plugin and visit your site in a logged out browser and see if any cookies are detected. That will help you track down what the problem is.

    Thread Starter DickRaney

    (@dickraney)

    Okay so I did that and still don’t what is going on. The cache contents still show same as posted initially. Here is debug log sample. Can you see any problems?

    14:31:23 31898 / wpsc_is_caching_user_disabled: false
    14:31:23 31898 / wp_cache_get_cookies_values: return:
    14:31:23 31898 / supercache dir: ABSPATH/wp-content/cache/supercache/www.mysite.com/
    14:31:23 31898 / wp-cache file exists: ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-e0cadaec085de48f160b44a77f659baf.php
    14:31:23 31898 / Serving wp-cache static file
    14:31:23 31898 / Getting legacy cache file ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-e0cadaec085de48f160b44a77f659baf.php
    14:31:23 31898 / exit request
    14:31:33 31898 / wpsc_is_caching_user_disabled: false
    14:31:33 31898 / wp_cache_get_cookies_values: return:
    14:31:33 31898 / supercache dir: ABSPATH/wp-content/cache/supercache/www.mysite.com/
    14:31:33 31898 / wp-cache file exists: ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-e0cadaec085de48f160b44a77f659baf.php
    14:31:33 31898 / Serving wp-cache static file
    14:31:33 31898 / Getting legacy cache file ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-e0cadaec085de48f160b44a77f659baf.php
    14:31:33 31898 / exit request
    14:31:39 31898 / wpsc_is_caching_user_disabled: false
    14:31:39 31898 / wp_cache_get_cookies_values: return:
    14:31:39 31898 / supercache dir: ABSPATH/wp-content/cache/supercache/www.mysite.com/
    14:31:39 31898 / wp-cache file exists: ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:31:39 31898 / Serving wp-cache static file
    14:31:39 31898 / Getting legacy cache file ABSPATH/wp-content/cache/supercache/www.mysite.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:31:39 31898 / exit request
    14:32:01 32055 /firm-overview/ wpsc_is_caching_user_disabled: false
    14:32:01 32055 /firm-overview/ wp_cache_get_cookies_values: return:
    14:32:01 32055 /firm-overview/ supercache dir: ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/
    14:32:01 32055 /firm-overview/ wp-cache file exists: ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/wp-cache-8593436c1300f82387c41ab035cf91d4.php
    14:32:01 32055 /firm-overview/ Serving wp-cache static file
    14:32:01 32055 /firm-overview/ Getting legacy cache file ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/wp-cache-8593436c1300f82387c41ab035cf91d4.php
    14:32:01 32055 /firm-overview/ exit request
    14:32:03 32055 /firm-overview/ wpsc_get_auth_cookies: no auth cookies detected
    14:32:03 32055 /firm-overview/ wpsc_is_caching_user_disabled: false
    14:32:03 32055 /firm-overview/ wp_cache_get_cookies_values: return:
    14:32:03 32055 /firm-overview/ supercache dir: ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/
    14:32:03 32055 /firm-overview/ wp-cache file exists: ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/wp-cache-a0c4af4a7245f7679c74b9e52118a244.php
    14:32:03 32055 /firm-overview/ Serving wp-cache static file
    14:32:03 32055 /firm-overview/ Getting legacy cache file ABSPATH/wp-content/cache/supercache/www.mysite.com/firm-overview/wp-cache-a0c4af4a7245f7679c74b9e52118a244.php
    14:32:03 32055 /firm-overview/ exit request
    14:32:11 32097 /wp-cron.php?doing_wp_cron=1660660330.7091119289398193359375 wp_cache_get_cookies_values: return:
    14:32:11 32097 /wp-cron.php?doing_wp_cron=1660660330.7091119289398193359375 In WP Cache Phase 2
    14:32:11 32097 /wp-cron.php?doing_wp_cron=1660660330.7091119289398193359375 Setting up WordPress actions
    14:32:11 32097 /wp-cron.php?doing_wp_cron=1660660330.7091119289398193359375 Not caching wp-admin requests.
    Plugin Contributor Mike Stott

    (@mikemayhem3030)

    Hi @dickraney

    Thanks for your patience with this one. I can’t immediately see anything obvious from that log file. It looks like it’s saying cookies are empty.

    Did you clear the cache and try visiting? Do you have “enable cache for logged in visitors” enabled.

    I’m wondering if there’s already a WP Cache file there, it won’t re-make a WP Super Cache file for example and you may have initially created the cache files while logged in

    Thread Starter DickRaney

    (@dickraney)

    I did clear cache and visit.

    Here are my settings https://snipboard.io/t8LTXQ.jpg

    My file manager shows a lot of files at
    httpsdocs > wp-content > cache > supercache > mydomainname
    but they all look like this wp-cache-94b5856c46d65877e33c12a54983b3b0.php
    they don’t say super-cache

    Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @dickraney,

    Thanks for bearing with us and being willing to experiment.

    I can’t see anything in your settings that should prevent supercache files from being created.

    As @mikemayhem3030 indicated, your debug log sample shows WP Super Cache serving a pre-built wp-cache file. When a wp-cache file already exists, it won’t re-cache a supercache version. It doesn’t tell us why it didn’t create a super-cache file when caching the page.

    I’m sorry to be a bother, but would you mind:

    1. Turn debug logging on again,
    2. Clearing your cache again,
    3. Loading a page on your site as an unauthenticated visitor (e.g.: using a private / incognito window), and finally
    4. Post the logs from that pageload?

    That should show us a sample of WP Super Cache caching your file anew. That will hopefully give us insight into why you aren’t getting any supercache files.

    Thread Starter DickRaney

    (@dickraney)

    Here you go. I replaced the domain name.

    <?php
    die( "Please use the viewer" );
    ?><pre>
    <?php // END HEADER ?>
    14:11:03 10492 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: setting not changed - $wp_cache_debug_log = 'a297f831548ed5fce10d3980eb070236.php';
    14:11:03 10492 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: setting not changed - $wp_cache_debug_username = 'e370c5134613eec7ab57404d866a0c8e';
    14:11:08 10492 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: changing line $wp_super_cache_debug = 0; to *$wp_super_cache_debug = 1;*
    14:11:08 10492 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: writing to /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/020bf2c45e7bb322f89a226bd2c5d41bG9F1Uj.php
    14:11:08 10492 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: moved /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/020bf2c45e7bb322f89a226bd2c5d41bG9F1Uj.php to /var/www/vhosts/mydomain.com/httpdocs/wp-content/wp-cache-config.php
    14:12:10 11016 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: Login/postpass cookie detected
    14:12:10 11016 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: 0aabfd9411f445ccbf569026f006d6eb
    14:12:10 11016 /wp-admin/admin-ajax.php In WP Cache Phase 2
    14:12:10 11016 /wp-admin/admin-ajax.php Setting up WordPress actions
    14:12:10 11016 /wp-admin/admin-ajax.php Not caching wp-admin requests.
    14:12:14 11016 / wpsc_is_caching_user_disabled: false
    14:12:14 11016 / wp_cache_get_cookies_values: return: 
    14:12:14 11016 / supercache dir: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/
    14:12:14 11016 / wp-cache file exists: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:12:14 11016 / Serving wp-cache static file
    14:12:14 11016 / Getting legacy cache file /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:12:14 11016 / exit request
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: Login/postpass cookie detected
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: return: 0aabfd9411f445ccbf569026f006d6eb
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug In WP Cache Phase 2
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug Setting up WordPress actions
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug Not caching wp-admin requests.
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug maybe_stop_gc: GC flag not found. GC will go ahead..
    14:13:16 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: setting not changed - $wp_cache_slash_check = 1;
    14:13:17 11411 /wp-cron.php?doing_wp_cron=1664460796.6322860717773437500000 wp_cache_get_cookies_values: return: 
    14:13:17 11411 /wp-cron.php?doing_wp_cron=1664460796.6322860717773437500000 In WP Cache Phase 2
    14:13:17 11411 /wp-cron.php?doing_wp_cron=1664460796.6322860717773437500000 Setting up WordPress actions
    14:13:17 11411 /wp-cron.php?doing_wp_cron=1664460796.6322860717773437500000 Not caching wp-admin requests.
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: Login/postpass cookie detected
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: return: 0aabfd9411f445ccbf569026f006d6eb
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug In WP Cache Phase 2
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug Setting up WordPress actions
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug Not caching wp-admin requests.
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug maybe_stop_gc: GC flag not found. GC will go ahead..
    14:13:20 11405 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: setting not changed - $wp_cache_slash_check = 1;
    14:13:39 11498 /wp-login.php?action=logout&_wpnonce=b4e0b5bf3f wp_cache_get_cookies_values: Login/postpass cookie detected
    14:13:39 11498 /wp-login.php?action=logout&_wpnonce=b4e0b5bf3f wp_cache_get_cookies_values: return: 0aabfd9411f445ccbf569026f006d6eb
    14:13:39 11498 /wp-login.php?action=logout&_wpnonce=b4e0b5bf3f In WP Cache Phase 2
    14:13:39 11498 /wp-login.php?action=logout&_wpnonce=b4e0b5bf3f Setting up WordPress actions
    14:13:39 11498 /wp-login.php?action=logout&_wpnonce=b4e0b5bf3f Not caching wp-admin requests.
    14:13:40 11498 /wp-login.php?loggedout=true&wp_lang=en_US wp_cache_get_cookies_values: return: 
    14:13:40 11498 /wp-login.php?loggedout=true&wp_lang=en_US In WP Cache Phase 2
    14:13:40 11498 /wp-login.php?loggedout=true&wp_lang=en_US Setting up WordPress actions
    14:13:40 11498 /wp-login.php?loggedout=true&wp_lang=en_US Not caching wp-admin requests.
    14:13:49 11498 /wp-login.php wp_cache_get_cookies_values: return: 
    14:13:49 11498 /wp-login.php In WP Cache Phase 2
    14:13:49 11498 /wp-login.php Setting up WordPress actions
    14:13:49 11498 /wp-login.php Not caching wp-admin requests.
    14:13:50 11498 /wp-admin/ wp_cache_get_cookies_values: Login/postpass cookie detected
    14:13:50 11498 /wp-admin/ wp_cache_get_cookies_values: return: abb25a25758d4ef07d3106d7dcc1484c
    14:13:50 11498 /wp-admin/ In WP Cache Phase 2
    14:13:50 11498 /wp-admin/ Setting up WordPress actions
    14:13:50 11498 /wp-admin/ Not caching wp-admin requests.
    14:13:58 11498 /wp-admin/options-general.php?page=wpsupercache wp_cache_get_cookies_values: Login/postpass cookie detected
    14:13:58 11498 /wp-admin/options-general.php?page=wpsupercache wp_cache_get_cookies_values: return: abb25a25758d4ef07d3106d7dcc1484c
    14:13:58 11498 /wp-admin/options-general.php?page=wpsupercache In WP Cache Phase 2
    14:13:58 11498 /wp-admin/options-general.php?page=wpsupercache Setting up WordPress actions
    14:13:58 11498 /wp-admin/options-general.php?page=wpsupercache Not caching wp-admin requests.
    14:13:59 11498 /wp-admin/options-general.php?page=wpsupercache maybe_stop_gc: GC flag not found. GC will go ahead..
    14:13:59 11498 /wp-admin/options-general.php?page=wpsupercache wp_cache_replace_line: setting not changed - $wp_cache_slash_check = 1;
    14:14:01 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: Login/postpass cookie detected
    14:14:01 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_get_cookies_values: return: abb25a25758d4ef07d3106d7dcc1484c
    14:14:01 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug In WP Cache Phase 2
    14:14:01 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug Setting up WordPress actions
    14:14:01 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug Not caching wp-admin requests.
    14:14:02 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug maybe_stop_gc: GC flag not found. GC will go ahead..
    14:14:02 11498 /wp-admin/options-general.php?page=wpsupercache&tab=debug wp_cache_replace_line: setting not changed - $wp_cache_slash_check = 1;
    14:14:41 11879 / wpsc_is_caching_user_disabled: false
    14:14:41 11879 / wp_cache_get_cookies_values: return: 
    14:14:41 11879 / supercache dir: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/
    14:14:41 11879 / wp-cache file exists: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:14:41 11879 / Serving wp-cache static file
    14:14:41 11879 / Getting legacy cache file /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:14:41 11879 / exit request
    14:15:22 12186 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: Login/postpass cookie detected
    14:15:22 12186 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: abb25a25758d4ef07d3106d7dcc1484c
    14:15:22 12186 /wp-admin/admin-ajax.php In WP Cache Phase 2
    14:15:22 12186 /wp-admin/admin-ajax.php Setting up WordPress actions
    14:15:22 12186 /wp-admin/admin-ajax.php Not caching wp-admin requests.
    
    Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @dickraney

    Thanks for running the test for me! Looking at your logs, I can see a bunch of activity in wp-admin which we can disregard. The first non-wp-admin load in your logs is:

    14:12:14 11016 / wpsc_is_caching_user_disabled: false
    14:12:14 11016 / wp_cache_get_cookies_values: return: 
    14:12:14 11016 / supercache dir: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/
    14:12:14 11016 / wp-cache file exists: /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:12:14 11016 / Serving wp-cache static file
    14:12:14 11016 / Getting legacy cache file /var/www/vhosts/mydomain.com/httpdocs/wp-content/cache/supercache/www.mydomain.com/wp-cache-b78f00e0bf0882a258c2b125d46e642b.php
    14:12:14 11016 / exit request

    That is rendering a cached file. That means that your cache is either not clearing correctly, or is being regenerated very quickly after you clear it.

    Can you please delete your cache once more, and check if there are any files under wp-content/cache/supercache/ on your site. If so, check their permissions to make sure that WordPress can delete them.

    It may also be worth deleting the contents of the wp-content/cache/supercache/ directory manually (via your web hosting dashboard or FTP program) to force these “stuck” files out.

    Thread Starter DickRaney

    (@dickraney)

    I deleted the cache again and went into hosting control panel file manager. The only thing under wp-content/cache/supercache/ was a directory mydomain.com which was empty. I went ahead and deleted that directory.

    Then, I visited website in new incognito window. Page loaded quickly and in source code I see

    <!-- Dynamic page generated in 0.540 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2022-10-03 09:59:07 -->

    When I view the folder in my file manager, I see the domain directory has been recreated and there are 2 files in it.

    And the updated cache contents look like this:

    `Cache Contents
    WP-Cache (15.37KB)

    1 Cached Pages
    0 Expired Pages
    WP-Super-Cache (0KB)

    0 Cached Pages
    0 Expired Pages
    List all cached files`

    Plugin Contributor Mike Stott

    (@mikemayhem3030)

    Hi @dickraney

    Circling back to what @donncha mentioned above, if you’re still not seeing any Super Cache files

    Maybe there’s a plugin or code on your site that sets a cookie for every visitor?

    Did you check this?

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hello @dickraney,

    It’s been a while since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cache Contents – Super Cache (0)’ is closed to new replies.