LiteSpeed Cache is Disabled Warning on WordPress
By Jithin on May 14th, 2019
As the name implies, the Litespeed cache is a cache and it is used in the Litespeed Web Server. The Litespeed web server is a substitute to the Apache Web Server. Some times we will face an issue that the lite speed cache is disabled as follows on WordPress.
Here I’m telling about how to solve this situation. This error mostly occurs while a website is migrated from remote to the destination server. This can occur mostly the misconfiguration of the lite speed file.
This is a generic error that doesn’t indicate any cause of the issue.
Let’s have look how to solve this.
1) Login to the WordPress admin portal.
2) Navigate to LiteSpeed Cache >> Report >> Report summary. Here you can see something like below.
Server Variables
SERVER_SOFTWARE = LiteSpeed
DOCUMENT_ROOT = /home/user/public_html
X-LSCACHE = on
LSWCP_TAG_PREFIX = 47b
WP_SITEURL = NULL
WP_HOME = NULL
WP_CONTENT_DIR = /home/user/public_html/wp-content
SHORTINIT = false
LSCWP_CONTENT_DIR = /home/user/public_html/wp-content
LSCWP_CONTENT_FOLDER = wp-content
LSCWP_DIR = /home/user/public_html/wp-content/plugins/litespeed-cache-bk/
LITESPEED_TIME_OFFSET = 21600
LITESPEED_SERVER_TYPE = LITESPEED_SERVER_ENT
LITESPEED_CLI = NULL
LITESPEED_ALLOWED = true
LITESPEED_ON = NULL
LITESPEED_ON_IN_SETTING = true
LSCACHE_ADV_CACHE = NULL
3) Check the values of the following variables:
LSCACHE_ADV_CACHE = true.
If LSCACHE_ADV_CACHE = NULL, then look into the wp-content/advanced-cache.php file where you can find a line define(‘LSCACHE_ADV_CACHE’, true);. If the line already exists, then it might be a permissions issue. Sometimes this won’t be the reason for the issue, and the plugin still doesn’t work. In this case, Login to WordPress dashboard Search for LiteSpeed Cache >> Settings >> Advanced and disable “Check Advanced Cache”.
LITESPEED_ON = true
If LSCACHE_ADV_CACHE = null, then this will be always NULL. Otherwise, if this value is NULL, then it means that you are not running with LiteSpeed Web Server. Check with the hosting provider.
LITESPEED_ON_IN_SETTING = true
If this value is NULL, then Login to WordPress Settings >> General page and set “Enable LiteSpeed Cache” to Enable.
4) If the above methods do not help you to resolve the situation, enable the lite speed then login to the server as the root user. Remove the advanced-cache.php file, and deactivating and reactivating the LiteSpeed Cache plugin. The file will be correctly regenerated and configured.
# rm -rf /home/user/publi_html/wp-content/advanced-cache.php
If you need any further help, please do reach our support department.
Thanks! Saved my ass. I’d have never figured this out on my own.
Cheers!