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

wp-config.php not found in hardened environment #105

Closed coreykn closed 4 years ago

coreykn commented 4 years ago

Update how the wp-config.php file is found. Use same method that WordPress uses in wp-load.php. This will avoid not finding the wp-config.php file if it's been moved when hardening WordPress and is not part of another installation (e.g. nested installation). Depending on the environment, file permissions may interfere even if the wp-config.php file is found one directory level above the WordPress installation.

WordPress topic: https://wordpress.org/support/topic/set-wp_cache-does-not-find-wp-config-php-in-some-cases/