WP Super Cache: iThemes Security overwrites the WP_CACHE define in wp-config.php #32462
Labels
Customer Report
Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"
[Plugin] Super Cache
A fast caching plugin for WordPress.
[Pri] Low
[Type] Bug
When a feature is broken and / or not performing as intended
Milestone
Impacted plugin
Super Cache
Quick summary
The iThemes Security plugin sometimes writes to the file wp-config.php and deletes the WP_CACHE define added by WP Super Cache.
The code that WP Super Cache uses to update the config files searches for a string to add a new settings above it. In the case of the wp-config.php, it matches on "define", but it appears likely that iThemes Security adds a define(), which gets matched. That causes the configuration of both plugins to be mixed up.
We will have to update the code that modifies wp-config.php to avoid this problem, probably by checking for the opening PHP tag instead.
It looks like it only happens if WP Super Cache is enabled after the other plugin.
Steps to reproduce
I gather from the forum post that iThemes Security occasionally updates their configuration data, and WP Super Cache will add the WP_CACHE define in there if it is enabled afterwards.
A clear and concise description of what you expected to happen.
The configuration data for both plugins to be separated
What actually happened
The WP_CACHE define for WP Super Cache is inserted into the iThemes Security plugin configuration data in wp-config.php and is deleted if that plugin updates the configuration data.
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Self-hosted
Logs or notes
No response
The text was updated successfully, but these errors were encountered: