WP Rocket's cache is cleared after every update #5958
Labels
effort: [XS]
< 1 day of estimated development time
module: filesystem
priority: low
Issues that can wait
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Before submitting an issue please check that you’ve completed the following steps:
3.13.3
Describe the bug
When updating WP Rocket the cache is cleared every time although this may not be the intended behavior.
For example, we have code to clear the cache when updating from a version lower than 3.6:
wp-rocket/inc/admin/upgrader.php
Lines 272 to 275 in 3b6300e
This is happening because
version
isn't part of the$removed
array:wp-rocket/inc/admin/options.php
Lines 25 to 54 in 3b6300e
so the following conditional always evaluates to
true
androcket_clean_domain()
runs clearing the cache:wp-rocket/inc/admin/options.php
Line 91 in 3b6300e
To Reproduce
Steps to reproduce the behavior:
3.13
./cache/wp-rocket/
folder.3.13.3
at the time this is written).Expected behavior
This issue should be seen as an opportunity to discuss whether we'll keep the current behavior, i.e. clear the cache after every update, or if we want to do that selectively, e.g. with specific versions.
Screenshots
N/A.
Additional context
N/A.
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: