Skip to content

How do I enable, disable, or flag LiteSpeed Cache for WordPress?

All shared, cloud web hosting, semi-dedicated, and reseller plans support the LiteSpeed Cache for WordPress (LSCWP) plugin at no additional cost. This plugin drastically improves performance of WordPress sites. Our systems automatically attempt to optimize your sites with caching, but you can also manually manage it.

  1. Log in to cPanel and search for LiteSpeed Web Cache Manager:

    30_lscache1.png

  2. Select WordPress Cache under the LiteSpeed Cache Management menu:

    31_lscache2.png

  3. Click Scan to detect all WordPress installations on your account:

    32_lscache3.png

  4. Under Discovered WordPress Installations, click Enable next to the installation you want to cache:

    33_lscache4.png

  5. The Cache Status will change from “Disabled” to “Enabled”:

    34_lscache5.png

  1. Log in to cPanel and search for LiteSpeed Web Cache Manager:

    35_lscache1.png

  2. Select WordPress Cache under the LiteSpeed Cache Management menu:

    36_lscache2.png

  3. Click Disable next to the installation under the Actions menu:

    37_lscachedisable1.png

  4. The Cache Status will change from “Enabled” to “Disabled”:

    38_lscachedisable2.png

Flagging prevents the system from automatically enabling LiteSpeed Cache on a WordPress installation in the future.

  1. Log in to cPanel and search for LiteSpeed Web Cache Manager:

    39_lscache1.png

  2. Select WordPress Cache under the LiteSpeed Cache Management menu:

    40_lscache2.png

  3. Make sure the Cache Status is Disabled for the installation you want to flag.

  4. Click Flag under the Actions menu:

    41_lscacheflag1.png

  5. A flag icon will appear. This installation will be excluded from future automatic LiteSpeed Cache installations until the flag is removed:

    42_lscacheflag2.png

Manually through FTP, File Manager, or SSH

Section titled “Manually through FTP, File Manager, or SSH”

For purposes of this guide, we will be showing instructions specifically using the File Manager in cPanel. However, the solution is the same regardless of how you access your account, a .litespeed_flag file must exist in the WordPress installation document root.

  1. Log in to cPanel and access your File Manager

  2. From the File Manager, navigate to your WordPress installation’s directory. If you cannot find your website’s document root, reference the Domains interface in cPanel. For example, if your WordPress installation is on your primary domain, double-click inside the File Manager to navigate to public_html

  3. From the File Manager top-right interface, click Settings

  4. From the Preferences pop-up, toggle the radio checkbox for Show Hidden Files (dotfiles). Click Save:

    Show hidden files

  5. Once dotfiles are enabled, from the File Manager menu navigation, click +File

  6. From the New File pop-up, enter the file name .litespeed_flag. Ensure the file is being created in your WordPress installation’s document root directory. Click Create New File:

    Create flag file

  7. Your File Manager should now show a .litespeed_flag file.

  8. LiteSpeed cache will no longer be automatically installed on this installation.