+91 88 00 563434 [email protected] Blog open-book Knowledge Base

Find Solutions in Our Knowledge Base

LiteSpeed Cache is Disabled Warning on WordPress

You are here:
Sharing is Caring

 

As the heading suggests, the Litespeed cache is a cache and it is utilized within the Litespeed Internet Server. The Litespeed web server is an alternative to the Apache Internet Server. Sometimes we will encounter an issue where the lite velocity cache is deactivated as shown below on WordPress.

Litespeed cache

 

Here I am explaining how to resolve this situation. This error mainly occurs when a website is migrated from remote to the destination server. This can occur mainly due to the misconfiguration of the lite velocity file.

This is a generic error that does not indicate any cause of the problem.

Let’s take a look at how to resolve this.

1) Log in 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 = /residence/person/public_html

X-LSCACHE = on

LSWCP_TAG_PREFIX = 47b

WP_SITEURL = NULL

WP_HOME = NULL

WP_CONTENT_DIR = /residence/person/public_html/wp-content

SHORTINIT = false

LSCWP_CONTENT_DIR = /residence/person/public_html/wp-content

LSCWP_CONTENT_FOLDER = wp-content

LSCWP_DIR = /residence/person/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 may be a permissions problem. Sometimes this won’t be the reason for the problem, and the plugin still doesn’t work. In that case, Log in 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 always be NULL. Otherwise, if this value is NULL, then it means that you are not operating with LiteSpeed Internet Server. Check with the hosting provider.

LITESPEED_ON_IN_SETTING = true

If this value is NULL, then Log in to WordPress Settings >> General page and set “Enable LiteSpeed Cache” to Enable.

4) If the above methods do not help you resolve the situation, enable the lite velocity then log in to the server as the root user. Remove the advanced-cache.php file, and deactivate and reactivate the LiteSpeed Cache plugin. The file will be properly regenerated and configured.

# rm -rf /residence/person/publi_html/wp-content/advanced-cache.php

 

If you need any further assistance, please do reach our support department.

 


Sharing is Caring

Leave a Comment

Table of Contents