You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Quite often, we get support tickets where the customers want to disable all forms of cache clearing.
We do have a public doc and helper plugin for this: https://docs.wp-rocket.me/article/137-disable-automatic-cache-clearing
However, the homepage cache cleanups can't be stopped.
Describe the solution you'd like
Add a filter to prevent the homepage cache from clearing.
A customer, Emiel (from the HS ticket below) suggested the following edit to our purge.php code:
// Never forget to purge homepage and their pagination.
if(apply_filters( 'rocket_clean_home_after_clean_post', true, $post_id ) === true ) {
rocket_clean_home( $lang );
}
Describe alternatives you've considered @joejoe04 suggested adding a more global filter to completely turn off all forms of cache cleanups in a consistent way. Including everything.
Is your feature request related to a problem? Please describe.
Quite often, we get support tickets where the customers want to disable all forms of cache clearing.
We do have a public doc and helper plugin for this:
https://docs.wp-rocket.me/article/137-disable-automatic-cache-clearing
However, the homepage cache cleanups can't be stopped.
The code of the helper plugin has been gaining complexity through the years, as from time to time we discover new ways where the cache is cleared: https://github.com/wp-media/wp-rocket-helpers/blob/master/cache/wp-rocket-no-cache-auto-purge/wp-rocket-no-cache-auto-purge.php
Describe the solution you'd like
Add a filter to prevent the homepage cache from clearing.
A customer, Emiel (from the HS ticket below) suggested the following edit to our purge.php code:
Describe alternatives you've considered
@joejoe04 suggested adding a more global filter to completely turn off all forms of cache cleanups in a consistent way. Including everything.
Additional context
Slack convo: https://wp-media.slack.com/archives/C43T1AYMQ/p1733320312253029
related ticket: https://secure.helpscout.net/conversation/2764323421/523592?viewId=1213662
The text was updated successfully, but these errors were encountered: