• Hello. How’s it going.

    Got a question about caching… It seems customary to clear the website cache quite often.. However, using WP Super Cache or WP Fastest Cache, they automatically update posts once they have been edited.

    In addition, Jetpack sidebar widgets (stats, comments, email subscribers) update on their own. It doesn’t affect the cache at all.

    My question is, why would I need to empty this out regularly if nothing is changing–and, when it does change, the plugin already deletes the cache and creates a new one?

    Is there certain functionality that doesn’t update on its own, or types of sites where this would be inadvisable?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You don’t have to clear cache if nothing is updating or changing on the website. however, in some cases, the cache should be cleared and regenerated. the best case is nonce change. some forms and javascript code will have nonce in HTML and that should be refreshed from time to time so that validations don’t get failed as old cache nonce value is being used.
    There are some other cases, for example, in the eCommerce website, the cart and checkout page should not be cached, the login page should not be cached.
    There could be more cases where the cache should be ignored or should clear and regenerate quickly.

    Thread Starter consumerista

    (@consumerista)

    How often would you recommend clearing it for the nonce, assuming it is otherwise static and nothing has changed?

    If I am not wrong, the default nonce lifetime is 24 hours.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it ever necessary to clear the cache?’ is closed to new replies.