User Agents

Web browsers and everyday web tech, explained

How to Remove Litespeed Cache Completely

· 4 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Removing Litespeed Cache completely means eliminating all traces of the cache system from your website, including server-level caching, browser cache rules, and configuration files. This is often needed when switching to another hosting provider, migrating to a different caching solution, or troubleshooting persistent performance issues. Before proceeding, ensure you have access to your hosting control panel, WordPress admin (if applicable), and server-level tools like SSH or cPanel. A backup of your site and database is strongly recommended to prevent data loss during the process.

What You'll Need

  • Access to your WordPress admin dashboard (if using WordPress)
  • Hosting control panel access (cPanel, Plesk, or direct server access)
  • FTP or file manager access to your website files
  • Database access (usually via phpMyAdmin or similar)
  • Backup of your website and database
  • SSH access (optional but recommended for advanced cleanup)

Step-by-Step

  1. Deactivate and delete the Litespeed Cache plugin (WordPress only): Log into your WordPress admin panel, go to Plugins, find "Litespeed Cache", and click Deactivate. After deactivation, click Delete to remove the plugin files from your site.
  2. Clear all Litespeed cache via the plugin (before deletion): Before deleting the plugin, go to the Litespeed Cache dashboard and click "Purge All" to clear existing cached files. This prevents stale cache from lingering during transition.
  3. Remove cache directories from the server: Using FTP or your hosting file manager, navigate to your root directory and delete any folders named cache, lscache, or wp-content/cache/litespeed. These folders store cached content and should be removed manually if not cleared automatically.
  4. Remove Litespeed rules from .htaccess: Open the .htaccess file in your site’s root directory. Look for blocks of code enclosed in # BEGIN LSCACHE and # END LSCACHE. Delete the entire block. Also remove any lines containing LiteSpeed or lscache. Save the file after editing.
  5. Remove Litespeed settings from wp-config.php (if present): Open wp-config.php and look for any lines referencing define('LSCWP_ or define('LS_. Delete these lines if found. These are manual overrides added for Litespeed Cache behavior.
  6. Clear the database of Litespeed Cache tables and options: Access your database via phpMyAdmin. Look for tables starting with litespeed or wp_litespeed and delete them. Also, in the wp_options table, search for litespeed in the option_name column and remove any related entries.
  7. Disable Litespeed Cache at the server level (if applicable): If your host uses Litespeed Web Server (not just the plugin), contact support or log into your hosting control panel to disable server-level caching. Some providers like CloudLinux or cPanel have a "Litespeed Cache Manager" that must be turned off separately.
  8. Clear browser cache and test site functionality: After removal, clear your browser cache or test in an incognito window. Visit your site to ensure pages load correctly and no cached redirects or broken assets remain.
  9. Verify cache headers are no longer served: Use browser developer tools (Network tab) to check page responses. Confirm that headers like X-LiteSpeed-Cache or Server: LiteSpeed are not misleading you into thinking cache is still active. Note: The server can still be LiteSpeed without caching enabled.
  10. Update DNS or hosting settings if migrating: If you’re switching hosts, ensure DNS changes are propagated and your new environment doesn’t auto-install Litespeed Cache. Some managed WordPress hosts reinstall it silently.

Common Mistakes

  • Forgetting to purge cache before plugin deletion, leaving stale files behind.
  • Not checking .htaccess or wp-config.php for hardcoded Litespeed rules.
  • Assuming deactivating the plugin removes all data—it doesn’t; manual cleanup is required.
  • Overlooking server-level cache settings that persist even after plugin removal.
  • Skipping database cleanup, leaving orphaned options that may conflict with new plugins.

Tips

  • Always back up your site and database before making changes.
  • Use a staging site to test removal steps before applying to live environments.
  • After removal, install a lightweight caching alternative like WP Super Cache or WP Rocket if needed.
  • Monitor site speed post-removal to confirm no hidden cache rules are still active.
  • Check with your host whether Litespeed Web Server is still in use—removing the cache doesn’t mean the server software changed.

Troubleshooting

If your site breaks after removal, first restore from backup. Check for missing closing PHP tags in wp-config.php or syntax errors in .htaccess. If pages load slowly, confirm no other caching plugins are active. If you see 500 errors, re-upload a clean .htaccess file. If the X-LiteSpeed-Cache header still appears, contact your host—this indicates server-level caching is still enabled. For database errors, verify table prefixes if using non-standard WordPress setups. Use online .htaccess validators to ensure syntax is correct after edits.

Frequently Asked Questions

Does removing the Litespeed plugin remove all cache?

No, the plugin removal only deletes its code. You must manually clear cache folders, .htaccess rules, and database entries.

Can I keep Litespeed Web Server without the cache?

Yes, the server software and caching plugin are separate. You can disable caching while keeping the server.

Will removing Litespeed Cache improve site speed?

Not necessarily. It may slow down temporarily until you set up a new caching solution.

Do I need SSH to remove Litespeed Cache completely?

No, but SSH helps with advanced cleanup. Most tasks can be done via FTP and phpMyAdmin.

Why is my site still showing LiteSpeed headers?

LiteSpeed Web Server may still be running. Removing the cache plugin doesn’t change the server software.

Can I reinstall Litespeed Cache later?

Yes, you can reinstall the plugin anytime, but you’ll need to reconfigure settings.