Stop auto purgue cache with wp rocket
-
Is there any method for woodmart not to completely delete the wp rockect cache when saving, either saving a small color change or something big, when saving it always completely deletes the cache, how can we avoid this?
We used to use Avada theme and we got this solution:
function skip_3rd_party_cache( $all_caches) {
$all_caches[‘other_caches’] = false;
}
add_filter( ‘reset_all_caches’, ‘skip_3rd_party_cache’, 12 );
Does woodmart have a similar function?
Hello,
Unfortunately, cache clearing is part of WP Rocket’s internal functionality, and the plugin itself determines when it’s necessary to completely clear the cache. The Woodmart theme does not have direct influence over this decision. Even with minor changes, such as color adjustments, WP Rocket may initiate a complete cache clearing.
Kind Regards