keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

update advanced-cache.php handling #283

Closed coreykn closed 3 years ago

coreykn commented 3 years ago

Rename the advanced-cache-sample.php file to advanced-cache.php for backward compatibility when updating from a couple old versions with a certain setting enabled. More specifically, any version from 1.2.3 (may be earlier) to 1.3.5 and the "Clear the complete cache if any plugin has been upgraded" setting was enabled. If this is not done then a PHP warning will occur due to a file not existing when trying to be copied. I believe this will be better than the alternative of leaving an empty advanced-cache.php file and then leaving advanced-cache-sample.php.

This updates the changes made in PR #260.