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.
Update how the
wp-config.php
file is found. Use same method that WordPress uses inwp-load.php
. This will avoid not finding thewp-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 thewp-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/