litespeedtech / litespeedtech/lscache_wp
wp-config.php write error
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
Please remove the
> wp-config.php operation failed when changing `WP_CACHE` const: File public_html/wp-config.php is not writable.
error message if the WP_CACHE variable is already defined, something like this:
`
if(defined('WP_CACHE') && WP_CACHE){
return true;
}
`
In the end, it looks like Litespeed cache plugin 3+ version does not use the advanced-cache.php file and here is the description for WP_CACHE varaible.
> The WP_CACHE setting, if true, includes the wp-content/advanced-cache.php script, when executing wp-settings.php.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the code that changes public_html/wp-config.php and handles the WP_CACHE setting. Check how an already-defined WP_CACHE value is handled, then verify that this case no longer reports the wp-config.php write error while other write failures still do.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100