How to clear LiteSpeed Cache for WordPress when wp-admin is not accessible

If you find yourself unable to access the WordPress admin dashboard but need to clear the LiteSpeed Cache, you can follow the following alternative methods to purge the LiteSpeed cache.

 

Method 1: LiteSpeed Web Cache Manager (cPanel)

Important:
Your WordPress instances must be listed in the cPanel > LiteSpeed web cache manager > WordPress Cache interface in cPanel.

  1. Login to your cPanel account.
  2. Locate and click on LiteSpeed Web Cache Manager.
  3. Inside the LiteSpeed Cache Manager, click the "Flush All" button to clear the entire cache.

This method provides a straightforward way to clear the LiteSpeed Cache without accessing the WordPress admin dashboard.


If your WordPress instances are not listed in the cPanel > LiteSpeed web cache manager > WordPress Cache interface, Go to cPanel > LiteSpeed web cache manager > WordPress Cache and click Scan button then click Flush All.

 


 

Method 2: WPCLI Command (Require SSH/Terminal Access)

Important:
cPanel Terminal/SSH Access and WPCLI are required.
WPCLI is already included with our WordPress hosting plans.

 

  1. Login to your cPanel account.
  2. Access the terminal from the cPanel.
  3. move to the Wordpress directory (e.g. cd public_html/wordpress or use the full path depending on your current directory cd /home/user/public_html/wordpress)
  4. Apply the following command to purge LiteSpeed Cache:
    wp litespeed-purge all

This command clears the LiteSpeed Cache using WPCLI. 

 

 

If you encounter any issues or need further assistance, please open a support ticket.

Remember to take necessary precautions and backups before making changes to your website files.

  • wordpress, litespeed
  • 1256 Users Found This Useful
Was this answer helpful?

Related Articles

How to access WHM?

We provide WHM access only to our customers on Reseller hosting, Cloud/VPS Hosting and Dedicated...

Can i use phpMyAdmin outside cPanel?

The phpMyAdmin tool available in cPanel is bundled with it and can be used only if you are...

What is an Inode or File Usage indicator in cPanel?

An inode is a record in a disk table, which contains information about a file or folder such as...

How to reduce the number of inodes my account uses?

The number of inodes equals the total number of files and folders on your web hosting account. In...

How to access cPanel?

1) Note: This point is for shared hosting customers!You can access cPanel from Customer Area...