Title: Dectivation problem
Last modified: April 9, 2025

---

# Dectivation problem

 *  Resolved [mountbest](https://wordpress.org/support/users/mountbest/)
 * (@mountbest)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/)
 * When I try to deactivate LSCache the error-log file reports the following error:
 * In wp-config.php: WP_CACHE could not be set to false during deactivation!
 * At many websites I have trouble deactivating and deleting LSC plugin. There are
   bits and pieces of junk left in many places, so I never know if the plugin is
   completely disabled. I need to disable LSC plugin to diagnose potential conflicts.
 * What should I do?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18407106)
 * [@mountbest](https://wordpress.org/support/users/mountbest/) do you have filter:
   _litespeed\_wpconfig\_readonly_ set to true?
   OR PHP can write to _wp-config_?
    -  This reply was modified 1 year, 1 month ago by [litetim](https://wordpress.org/support/users/litetim/).
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18407124)
 * Also, please tell me if you see an error message in Admin?
 *  Thread Starter [mountbest](https://wordpress.org/support/users/mountbest/)
 * (@mountbest)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18408734)
 * wp-config.php is read only, which is a recommended security setting.
 * Yes, I see warning in the Admin when I try to deactivate, delete or reinstall
   your plugin.
 * I think plugins should not be allowed to modify wp-config.php for security reason.
   And if changes are required – they should be clearly documented. What changes
   LSC tries to do to system files when it is installed, activated, deactivated 
   and deleted?
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18409889)
 * [@mountbest](https://wordpress.org/support/users/mountbest/) 
   I specifically 
   chosen to ask if PHP has access to write **wp-config.php** Default WP, files 
   and folders, permissions are presented here: [https://developer.wordpress.org/advanced-administration/server/file-permissions/](https://developer.wordpress.org/advanced-administration/server/file-permissions/)(
   you might know how permissions works, BUT this is what WP needs).LSC will need
   to edit **wp-config.php** to automate add/remove **WP_CACHE** constant that is
   needed for site to use cache mechanisms. See: [https://scanfully.com/docs/wordpress-health/what-does-the-wp_cache-constant-do/](https://scanfully.com/docs/wordpress-health/what-does-the-wp_cache-constant-do/)
   We are making changes to:– **wp-config.php**– **.htaccess**– folder **/wp-content/
   litespeed** where we save all the info we generate and use: minified css, combined
   css, ucss, ccss,ucss, crawler, logs…– database: settings, post meta, custom tablesPretty
   much these are the files and places we change. I can help you with more specific
   and also the plugin code is open source and you can look over it.
 *  Thread Starter [mountbest](https://wordpress.org/support/users/mountbest/)
 * (@mountbest)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18410830)
 * What changes to wp-config.php do I need to make to DEACTIVATE the LSC plugin?
   Setting WP_CACHE constant to false? Deleting this constant?
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18411178)
 * You can do any of them, but I would delete the constant.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Dectivation problem’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [litetim](https://wordpress.org/support/users/litetim/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/dectivation-problem/#post-18411178)
 * Status: resolved