• I run the latest of the plugin and WP 4.9.9 under Litespeed server. It seems that when “Not caching requests by known users” is enabled (as it should), ALL users are served dynamic pages and not cached, anonymous also.

    Tested that from several pcs, even from TOR. Same result.

    Disabling that option seems to work BUT it caches logged in users and i don’t want that.

    Any ideas what could be wrong ? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • I have the same problem with WP 4.9.8. This worked before.

    I simulate a not-known user on Opera and my pages are not cached.

    I activated the debug:

    20:42:03 201350 /expertises/ wp_cache_get_cookies_values - found extra cookie: cookie_notice_accepted
    20:42:03 201350 /expertises/ wp_cache_get_cookies_values: return: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:03 201350 /expertises/ Caching disabled for logged in users on settings page.
    20:42:03 201350 /expertises/ Supercache Late Init: add wp_cache_serve_cache_file to init
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 wp_cache_get_cookies_values: return: 
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 Supercache Late Init: add wp_cache_serve_cache_file to init
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 Supercache Late Loader running on init
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 Not serving wp-admin requests.
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 In WP Cache Phase 2
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 Setting up WordPress actions
    20:42:04 201353 /wp-cron.php?doing_wp_cron=1547152924.3924748897552490234375 Not caching wp-admin requests.
    20:42:04 201350 /expertises/ Supercache Late Loader running on init
    20:42:04 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:04 201350 /expertises/ wp_cache_check_mobile: xxx
    20:42:04 201350 /expertises/ supercache dir: xxx
    20:42:04 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:04 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:04 201350 /expertises/ Cookies found. Cannot serve a supercache file. 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:04 201350 /expertises/ In WP Cache Phase 2
    20:42:04 201350 /expertises/ Setting up WordPress actions
    20:42:04 201350 /expertises/ Created output buffer
    20:42:04 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:05 201350 /expertises/ Output buffer callback
    20:42:05 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:05 201350 /expertises/ wp_cache_get_cookies_values: cached: 3c85fb26cbbd735e3881c5fb4c06911f
    20:42:05 201350 /expertises/ Not caching for known user.
    20:42:05 201350 /expertises/ Cache is not enabled. Sending buffer to browser.
    20:42:05 201350 /expertises/ wp_cache_maybe_dynamic: returned $buffer
    20:42:05 201350 /expertises/ wp_cache_shutdown_callback: collecting meta data.
    20:42:05 201350 /expertises/ Did not write meta file: meta-wp-cache-9aa1a70f9e82fa20b9169bdff19fd5d7.php ** *1* *1*

    Why this line

    20:42:05 201350 /expertises/ Not caching for known user.

    as I am not logged in.

    ok..found the problem. I have a conflict with my cookie notice. When I accept my cookie notice, a cookie will be stored. From that moment on, no page is cached anymore. This explains the error message “cookie found. no cached page used”

    As long as I do not accept the cookie notice, my pages are cached.

    My plugin is “Cookie Notice”.

    Thread Starter massimod

    (@massimod)

    @swissspaceboy Dude thanks !!! You are right. It IS because of Cookies privacy plugin. BUT this is a WPSP plugin problem and not of the cookies plugin since i tried 2-3 different, with the same problems.

    I am testing out plugin WPSC Country Caching that handles also the caching problem for country GEOIP and Cookie notice plugin.

    But I get the white screen of death when I activate it.

    Anyway, serious problems with caching and cookie notice ??

    Sa?a

    (@stodorovic)

    It’s known issue – https://github.com/Automattic/wp-super-cache/issues/620. I’ve created PR – Improves logic for logged in users.
    There is little problem because this PR creates cache for pages with custom cookies (it’s opposite with current behavior – some users use it for reject caching). You could try to apply this PR. It worked in my tests.

    Thread Starter massimod

    (@massimod)

    @stodorovic i have tried PR and it seems to work just find for me.

    Many thanks for that.

    Ha I will try it out also as I want to keep my cookie notice plugin. I tried manual patches yesterday but no success.

    Do I need to change my WPSC settings before upgrading? I have enabled the “do not cache for known users”.. I didn’t understand the backwards compat problem described in github.

    Thanks for the fix. I hope it will solve this nasty cookie problem.

    Didier.

    Sa?a

    (@stodorovic)

    It’s possible that you didn’t apply all changes. I’ve created zip file which you could manually install (you could find link in comment on github). This file contains current github repository with merged PR #631.
    It works with enabled “Don’t cache pages for known users.”. You will see WP cache files (wp-cache-…, meta-wp-cache-…) instead of index.html in cache directories.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not caching requests by known users not working right’ is closed to new replies.