Installation and configuration of the Litespeed cache plugin
In this article we will present the necessary steps for installing and setting up the Litespeed cache module.
Introduction
In this article we will present the necessary steps for the correct configuration of the LiteSpeed Cache plugin in WordPress.
Requirements
Shared hosting package with the option Web Server LiteSpeed or in the case of VPS services, the LiteSpeed server license.
Access to the Wordpress administration panel
Steps
1. Installing and activating the plugin
- We will connect to the WordPress admin panel
- Access Plugins → Add New, search for „LiteSpeed Cache”, then click Install Now and Activate.
- After activation, the section LiteSpeed Cache will appear in the sidebar menu.
2. Configuring the Cache tab
In the section LiteSpeed Cache → Cache, the following settings are recommended:
- Enable Cache: ON – activates the page caching system.
- Cache Logged‑in Users: OFF – to avoid serving cached content to authenticated users.
- Cache Commenters: OFF – thus, pages are not served from cache until comments are approved.
- Cache REST API: ON – recommended setting for most websites.
3. TTL settings (Time to Live)
In the TTL tab, the cache validity periods are defined:
- Default Public Cache TTL: 604800 seconds (1 week)
- Default Private Cache TTL: 1800 seconds
- Front Page TTL: 604800 seconds
The default values are sufficient and suitable for most websites.
4. Cache Purge (cache deletion)
In the Purge tab, the user can set when the cache is cleared:
- Purge All on Upgrade: it is recommended to be OFF, except in cases where frequent updates are made.
- Auto Purge Rules: only relevant pages are selected, such as the front page and archives.
5. Cache exclusion settings (Excludes)
For pages that should not be cached (e.g. checkout, forms, administration area), these are added in the Excludes tab using specific URIs such as /checkout/ /admin/
6. Other basic settings
- Cache obiect
The Hostico servers support Memcached, this option can be enabled for caching static objects from the site.
- Cache-ul browserului
It is recommended to enable to set the expiration for static files (CSS/JS/image). Usual TTL: 1 year.
- Optimizarea paginii
Initially, options such as Minify, Defer JS, and Lazy Load should be left disabled. They can be activated later, after testing, for additional optimizations.
Saving and verifying settings
After configuration, the user must:
-
Save changes in each tab.
-
Check the functionality of the site by accessing it in incognito mode.
-
Publish or edit a page to see if the cache is refreshed.
-
Evaluate performance using tools such as GTmetrix or PageSpeed Insights.
With these settings, the LiteSpeed Cache plugin is configured to ensure optimal performance and reduced loading time for any WordPress site.