• Hi All

    Novice here. I’m looking for advice on how to tackle an issue with caching whole pages. I am using WP Rocket and their Preload Cache feature on our very large site (but this is not specifically a WP Rocket question – as far as I can tell I would have the same issue with any caching plugin because the following is a feature of WordPress).

    The problem is that the preload cache is only able to process 5-5.5k pages before the cache lifespan expires and it starts purging them, so only a tiny fraction of the ~220K pages on the site are ever actually preloaded.

    Cache lifespan is set to 10 hours because any more than that and things break due to the nonces on the pages in question expiring and throwing up errors.

    I understand that it is possible to extend the expiry of nonces, in which case it should be possible to then change the cache lifespan and have both work together to achieve what I am trying to do, but that doing so can compromise security. What are the security risks in extending nonce expiries and can they be mitigated somehow?

    Other information that might be pertinent: the site is largely static, there are no reviews or commenting so a cache lifespan of 30 days should work in theory. Whilst it is a WooCommerce site, it is on a Request For Quote basis, there are no online payments. It’s currently low traffic, with the number of visits spread over a very large number of pages, so it would be a rare event for a second visit to a page to occur before the cache would ordinarily expire, so every visit is essentially coming in cold.

    Is there a solution to this? Perhaps a bolt on service like Cloudflare?

    Has anyone else had the same issue and found a solution? Ideally I would prefer to keep the same hosting if possible.

    Thanks in advance.`

Viewing 1 replies (of 1 total)
  • Based on your description, the hit rate and number of pages, I’m wondering why you are caring about caching at all? What is the logic here?

Viewing 1 replies (of 1 total)
  • The topic ‘Preloading pages, not enough time’ is closed to new replies.