Suggestion: Disable object cache from wp-config




Wordpress LScache Plugin: Suggestion: Disable object cache from wp-config

Last Updated on: Wed, 15 Apr 2026 00:00:02
I have two installations using same wp-content, like multisite, but isnt. Such is supported by WordPress. If object cache is enabled, the secondary site becomes inaccessible (redirects to main site) even with LScache deactivated. If I turn off object cache on main site, everything is ok, but I would like to use it. I tried both const WP_CACHE = false and const LSCWP_OBJECT_CACHE = false but none worked. I then modified object-cache.php line 40: if ( LSCWP_OBJECT_CACHE && file_exists( $lib_file ) ) and it now works. This constant is always set to true at top of the file, unless already defined. Could this be implemented, please? Let me disable object cache from wp-config, even if object-cache.php exists. thanks, will forward to our devs That condition is insufficient. Also need to turn off WP initialized OC. This is added in v4.7-a11. You can try it via Beta Test. Thanks. That seems to work just fine, thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference