• Resolved alx359

    (@alx359)


    Fallback cache TTL=0 (i.e. no expiration) is the given default in CSPC. Other plugins like WP-Rocket suggest a cache TTL of 10h or less because of the WP NONCES lifespan. Others like WP Fastest Cache have a setting for TTL, but seem to not care to set a default and leave it up to the site owner. Frankly, I’m confused of all this. How are NONCES affecting the overall cache handling of CSPC? Clearing the whole cache in less than 10h seems counter-intuitive, and goes against the idea of keeping cached stuff that seldom changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @alx359,
    WP nonces are used to provide a unique signature to ajax requests. So far we haven’t faced any issues with WP nonces whatsoever in all the sites we personally use across along with client sites. As the nonce access are mostly gets used in the WP Admin site which is not cached in any way.

    Moreover once a page gets cached in Cloudflare CDN if it is a popular page, CF will cache it for 1 year unless you purge it so in that case fallback cache is not being used.

    I would suggest you first use and see if you face any issue rather than just seeing what others are doing and compare it with our plugin. If you want you can always change the fallback cache TTL to whatever you want.

    Thread Starter alx359

    (@alx359)

    Thanks, your own real-world observations is what I was more interested in. The reference to other plugins was to show that nonces seem a bigger issue for some but not for others. Nonces can also used in forms in the frontend (e.g. Master Popups plugin does that by default), but I’ve switched that option off as a precaution.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @alx359,
    Though I’ve personally haven’t used “Master Popups” but if any website which uses such a system can easily add 10 hours of TTL into the system. Again the default settings are what works for 99% of people’s website without any issue. But that doesn’t mean if you have some special situation in place, you don’t have to change the settings.

    I would recommend you to try and test first to see what’s happening in reality in your website first. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘NONCES and CF/fallback cache’ is closed to new replies.