Wordpress LScache Plugin: Disable All Features Option Doesnt Include PHP
Last Updated on: Wed, 15 Apr 2026 00:00:02 I have the Disable All Features option set to On , but the plugin is still caching my .php files. Flushing the cache does nothing. The only way to see updates to my php files is to click Save Changes on the LiteSpeed Cache Settings page. Ive also tried setting Cache PHP Resources to No , but that doesnt help either. Heres whats showing up in the debug log: [05-Nov-2019 17:32:02 UTC] PHP Notice: Constant LITESPEED_DISABLE_OBJECT already defined in /home/site/public_html/wp-content/plugins/litespeed-cache/admin/litespeed-cache-admin-settings.class.php on line 967 Thanks Hi @heartwired, could you try to reinstall LiteSpeed cache? Also, did you set LITESPEED_DISABLE_OBJECT somewhere on your code? Ive tried re-installing. Didnt help. I am using Closte hosting, which includes Litespeed by default, so its possible theyre using it somewhere. Ill have to look into it. Ok, the PHP file not updating issue might be related to the object cache on your server. If you find disabling our plugin not help, you can check on your hosting object cache setting. Sorry if I mislead you. Disabling the plugin fixes the caching issue, but when I activate the plugin, the issue returns. Its definitely related to the plugin. Okay, it looks like my host has a must-use plugin which includes the following: if(!defined( LITESPEED_DISABLE_OBJECT )) define( LITESPEED_DISABLE_OBJECT ,true) What exactly does this do? Could you please join our Slack channel and find me by @stanley Cheung at Litespeed for reproducing the issue?
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference