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 requirements check #249

Closed coreykn closed 3 years ago

coreykn commented 3 years ago

Update checking the plugin requirements. Use dynamic directory name and path values in the notices instead of static values. For example, instead of wp-content/plugins/cache-enabler get that partial directory path by subtracting the ABSPATH value from the CACHE_ENABLER_DIR value (this will still be wp-content/plugins/cache-enabler for default installations). This will be useful if custom directories are used and will be needed for #226.

Add permissions check for the settings directory (https://wordpress.org/support/topic/gzip-not-working-with-nginx/). This means now both the cache and settings directories will be checked for writability.