• Resolved fizzers

    (@fizzers)


    Hi guys,

    Great plugin, just having some issues with Test Cache.

    I suspect this may be because of an existing page rule in CF that we need. Any clues?

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://pips-seedbank.co.uk): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.
    
    Error on static resource (https://pips-seedbank.co.uk/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.
    https://www.pips-seedbank.co.uk/*
    Forwarding URL (Status Code: 302 - Temporary Redirect, Url: https://pips-seedbank.co.uk/$1)
Viewing 7 replies - 1 through 7 (of 7 total)
  • Mat

    (@mateithemeisle)

    Hello @fizzers,

    Thank you for using WP Cloudflare Super Page Cache!

    I have checked your website in incognito mode and it seems that everything checks out! You have all the required headers displayed and the page seems to be cached as it has the HIT status in the header.

    However, when checking the website without being in incognito mode, the status is miss which makes me think that maybe you have set up already 3 rules in Cloudflare and thus the plugin didn’t have space to set its own rule?

    Also can you please check with your hosting provider to see if you have ani page caching rule setup at the server level which might interfere?

    Thank you and we’ll wait for your response!

    Thread Starter fizzers

    (@fizzers)

    Hey @mateithemeisle,

    The headers did seem to check out when I looked yesterday, however, we were getting some dodgy E/F scores on gtmetrix and I saw this sudden drop-off in Cloudflare at 12am (30-50% to <4%) which makes me think there us an issue somehow with the configuration.

    Is it just one page rule that WP Cloudflare Super Page Cache requires? We do have one already configured (see original post) that could be conflicting depending on this.

    Thanks

    • This reply was modified 3 years, 2 months ago by fizzers.
    • This reply was modified 3 years, 2 months ago by fizzers.
    • This reply was modified 3 years, 2 months ago by fizzers.
    Plugin Contributor iSaumya

    (@isaumya)

    Hi @fizzers,
    While checking your site, I saw that the plugin is working perfectly on your site and your pages are being cached by Cloudflare. Screenshot: https://i.imgur.com/kOTK5sO.png

    I see that you already have a redirection page rule in your Cloudflare. That will not cause any issues with caching. Just make sure that you do not have any other caching page rules in your Cloudflare besides the cache everything page rule added by this plugin.

    Also please make sure that inside your Cloudflare dashboard > Caching > configuration the browser cache TTL is set to respect header.

    Also if you would like to know how Cloudflare cache works under the hood, highly recommend you checkout this article: https://acnam.com/untold-truths-of-cloudflare-cdn/#cloudflare-cache-creation-replication-storage

    Thread Starter fizzers

    (@fizzers)

    Thanks @isaumya.

    It just seems to be behaving inconsistently (sometimes cache HIT sometimes MISS).

    To confirm, we only have two page rules configured (one is our redirect, the other was set up by Super Page Cache).

    The browser cache TTL is set correctly.

    Safe to leave these settings in SG Optimizer enabled or not?

    Plugin Contributor iSaumya

    (@isaumya)

    Safe to leave these settings in SG Optimizer enabled or not?

    – Turn off those options. At no point ever use two page caching solution together. When using this plugin you can only the SG optimizer for static files optimization like css, js images etc.

    Regarding sudden MISS, if CF does not receive enough request for that page then it will delete the content from it’s CDn cache to save space. Please read the article link shared above you will understand it better.

    Thread Starter fizzers

    (@fizzers)

    – Turn off those options. At no point ever use two page caching solution together.

    Thanks – they’re set to off.

    With some further testing on the homepage – as @mateithemeisle pointed out – caching works correctly when logged out /incognito but no longer works when logged in. Is this expected behaviour?

    • This reply was modified 3 years, 2 months ago by fizzers.
    • This reply was modified 3 years, 2 months ago by fizzers.
    Plugin Contributor iSaumya

    (@isaumya)

    caching works correctly when logged out /incognito but no longer works when logged in. Is this expected behaviour?

    – Yes loggedin users are always bypassed as for loggedin users they can be seeing dynamic content and hence PHP needs to execute. So, we cannot show cached content to the loggedin users.

    The plugin is designed in a way so that you can provide cached pages to your normal users while automatically bypass caching for the loggedin users so that they can work properly with the WordPress system and WP backend.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[NSFW] Test Cache issues’ is closed to new replies.