How to Purge LiteSpeed Cache Step by Step
In this article
Purging LiteSpeed Cache removes stored website data so visitors see the latest version of your site. This is essential after updating content, changing themes, or fixing layout issues. Without clearing the cache, changes may not appear immediately, confusing both you and your audience. LiteSpeed Cache stores static versions of pages to speed up loading, but when updates go live, the old cached versions must be manually or automatically cleared. This guide walks through the correct methods to purge LiteSpeed Cache effectively across different access levels and setups, ensuring your site reflects current content. Before starting, confirm that LiteSpeed Web Server or LiteSpeed for WordPress is installed and active on your site.
What You'll Need
- Administrator access to your website (WordPress, cPanel, or server-level)
- LiteSpeed Web Server or LiteSpeed Cache plugin installed and enabled
- Basic understanding of your hosting environment (shared, VPS, or dedicated)
- Access to your WordPress dashboard (if using WordPress)
- FTP or file manager access (optional, for advanced troubleshooting)
Step-by-Step
- Log into your WordPress dashboard if your site runs on WordPress. Navigate to the admin URL (typically yourdomain.com/wp-admin) and enter your credentials.
- Go to the LiteSpeed Cache plugin menu. In the left sidebar, locate "LiteSpeed Cache" and click it. If you don’t see the menu, ensure the plugin is activated under Plugins > Installed Plugins.
- Click the 'Purge All' button on the main dashboard tab. This clears all cached pages, CSS, JavaScript, and media files. A confirmation message will appear once complete.
- Verify the purge was successful. Reload your website in a private browser window to confirm updated content appears. Avoid using cached tabs to test.
- For selective purging, go to the "Purge" tab within the LiteSpeed Cache menu. Here you can purge specific post caches, taxonomy caches, or CDN content if enabled.
- If using cPanel, log into your hosting control panel. Look for the "LiteSpeed Cache Manager" icon, usually under the Software or Security section. Click it to access server-level cache controls.
- Select your domain from the list in the Cache Manager. Click 'Purge All' to clear the entire site’s cache at the server level.
- For command-line access (SSH), connect to your server. Run the command:
/usr/local/lsws/admin/misc/purge_cache.sh. This script clears all cached content if you have root or appropriate permissions. - After purging, monitor site performance. Use tools like GTmetrix or PageSpeed Insights to confirm the site reloads correctly and performance remains stable.
- Enable auto-purge if available. In the LiteSpeed Cache settings, ensure options like "Auto-Purge on Update" are enabled for posts, pages, and comments to reduce manual steps in the future.
Common Mistakes
- Purging from the wrong interface: Users sometimes purge browser cache only, not server cache. Browser clearing doesn’t affect LiteSpeed’s server-side storage.
- Not testing in incognito mode: Remaining logged-in sessions or browser caches can show outdated content, leading to false conclusions that the purge failed.
- Ignoring CDN caching: If you use Cloudflare or another CDN, LiteSpeed purge doesn’t clear CDN edges. You must purge CDN cache separately.
- Forgetting to purge after plugin/theme updates: Even if content hasn’t changed, updated code may require cache refresh to reflect new functionality.
- Using outdated LiteSpeed versions: Older versions may have bugs in purge functionality. Always update to the latest stable release.
Tips
- Set up auto-purge rules for common triggers like post updates, comment approvals, or WooCommerce order changes.
- Use the LSCache tag system to mark dynamic content that should bypass caching, reducing the need for frequent full purges.
- After major site changes, purge in stages: first CSS/JS, then pages, to isolate loading issues.
- Enable debug logging in LiteSpeed Cache settings temporarily if purge issues occur, then review logs for errors.
- Add a cache purge button to your admin toolbar via plugin settings for one-click access.
- For multisite networks, purge network-wide from the main site’s dashboard to ensure all subsites are updated.
Troubleshooting
If the cache doesn’t clear after following the steps, first verify the LiteSpeed plugin or server module is active. In WordPress, deactivate and reactivate the plugin to reset its state. Check file permissions: the /wp-content/litespeed directory must be writable by the web server (typically 755 for folders, 644 for files). If using a managed hosting provider (e.g., WP Engine, SiteGround), confirm they support LiteSpeed and haven’t restricted cache management. If the purge button does nothing, clear your browser cache and retry, or test from another device. For server-level issues, check LiteSpeed error logs at /usr/local/lsws/logs/error.log for purge-related failures. If using a firewall or security plugin, temporarily disable it to rule out interference with admin AJAX calls used by the purge function. If problems persist, manually delete cache files via FTP: navigate to wp-content/litespeed/cache/ and remove all subfolders. This forces a complete rebuild on next visit.
Frequently Asked Questions
Does purging LiteSpeed Cache affect site speed?
Temporarily, yes. After purge, the first few visits will be slower as new cache files rebuild. Performance returns to normal once caching resumes.
How often should I purge LiteSpeed Cache?
Only when necessary—after content updates, design changes, or plugin configurations. Over-purging reduces performance benefits.
Can I purge cache for just one page?
Yes. In the LiteSpeed Cache plugin, go to the Purge tab and use "Purge by URL" or edit the specific post and click "Purge This Post".
Why doesn’t my site update after purging?
Check for CDN caching, browser cache, or unresolved plugin conflicts. Ensure all cache layers (server, CDN, browser) are cleared.
Is it safe to purge cache frequently?
Yes, but avoid unnecessary purges. Frequent clearing increases server load during cache rebuild and slows initial page loads.
Does LiteSpeed Cache work with other caching plugins?
No. Running multiple caching plugins causes conflicts. Disable all others (e.g., W3 Total Cache, WP Super Cache) when using LiteSpeed.