Loading...

How to Enable LiteSpeed Cache on Hostinger

Hostinger runs on LiteSpeed Web Server and ships with the LiteSpeed Cache plugin pre-installed on most WordPress plans, but the default install leaves several cache layers switched off in hPanel. This guide walks through enabling every layer that actually moves your page load time, then shows how to verify LiteSpeed Cache is serving your site from cache and how to fix the issues that trip people up most often.

Prerequisites

You will need an active Hostinger web hosting plan (Premium and above ship with LiteSpeed Web Server), a WordPress site installed on that plan, and admin access to both hPanel and the WordPress dashboard. If you have not set up your site yet, work through how to set up Hostinger first, then come back here once WordPress is live.

Step 1: Check Whether LiteSpeed Cache Is Already Active

Hostinger auto-installs the LiteSpeed Cache plugin (LSCWP) on WordPress sites created through hPanel, so before you change anything, check the current state. In the WordPress admin, open Plugins and look for LiteSpeed Cache in the active list. If it is there, the plugin side is handled. If it is missing (this happens on sites migrated in from another host), install it from the WordPress.org plugin directory and activate it.

Next, open LiteSpeed Cache > Cache in the WordPress sidebar and confirm that Enable LiteSpeed Cache is set to ON. If it is already ON, the site is caching at the plugin level, but the server-side toggles in hPanel may still be off. Continue to Step 2.

Step 2: Turn On Cache Controls in hPanel

Server-side cache is controlled from hPanel, not from WordPress. Log in to hPanel, open Websites, pick the site you want to speed up, and use the sidebar to go to WordPress > Overview. Scroll to the Core section. You will see three switches worth attention:

  • Cache: the primary page cache. Toggle this ON. It tells LSWS to store fully-rendered HTML for guest visitors so PHP is skipped on subsequent requests.
  • Object cache: caches WordPress database query results in memory via LiteSpeed Memcached (LSMCD). Toggle ON if the switch is available. On the entry Premium plan it may be greyed out; Business and Cloud plans expose it.
  • Automatic updates: unrelated to cache but worth leaving ON so the LSCWP plugin stays current with LiteSpeed server releases.

Changes take effect immediately. There is no need to restart anything from the hPanel side.

Step 3: Configure the LSCWP Plugin

Back in the WordPress admin, open LiteSpeed Cache > Cache. The defaults are conservative, so bump the following:

  • Cache tab: Enable LiteSpeed Cache ON, Cache Logged-in Users OFF unless you run a membership site, Cache Commenters ON, Cache REST API ON, Cache Login Page ON, Cache favicon.ico ON, Cache PHP Resources ON.
  • TTL tab: default values are fine for most sites (Default Public Cache TTL 604800, Default Private Cache TTL 1800). Leave them unless you are debugging.
  • Purge tab: enable Purge All On Upgrade and add "All pages" to Auto Purge Rules For Publish/Update so cached pages refresh when you push new content.
  • Browser tab: enable Browser Cache and set Browser Cache TTL to 31557600 (one year) for standard sites.

Click Save Changes at the top of each tab as you go. LSCWP applies settings per tab, not globally.

Mobile Cache Settings

Open LiteSpeed Cache > Cache > Mobile. The key setting here is Separate Cache for Mobile. Leave this OFF if your theme is responsive (the same HTML adapts to screen size using CSS). Turn it ON only if your site serves a completely different HTML template to mobile visitors. Most modern WordPress themes are responsive, so leaving it off is correct in the majority of cases.

If you turn on Separate Cache for Mobile, LSCWP stores a second cached version of every page for mobile requests. This doubles the cache storage requirement and adds a small amount of complexity to purge operations. Only enable it when you have confirmed your theme actually serves different HTML to mobile browsers.

Step 4: Verify LiteSpeed Cache Is Actually Serving

Enabling switches is not the same as caching. To confirm the server is returning cached responses, run a quick header check from your terminal:

curl -I https://yourdomain.com/

Look for an x-litespeed-cache header in the response. Values you may see:

  • hit: the page was served from cache. This is what you want.
  • miss: the page was rendered fresh and stored. Run the command a second time; you should see a hit on the follow-up request.
  • no cache: something is excluding this URL from caching. Check the LSCWP Excludes tab and any conflicting plugin (WP Rocket, W3 Total Cache) that may be intercepting.

If the header is missing entirely, LSWS is not caching for this domain. That usually points to a plugin-side setting that has not saved, or a CDN in front of the site returning its own headers before LiteSpeed can respond. Purge from LiteSpeed Cache > Toolbox > Purge All and retest.

Step 5: Handle WooCommerce and Membership Cache Rules

Guest pages cache cleanly. Cart, checkout, account, and admin pages must not cache the same way, or visitors will see stale sessions. LSCWP already excludes the standard WooCommerce endpoints by default, but if you use custom checkout URLs, add them under Cache > Excludes > Do Not Cache URIs. For membership sites (MemberPress, LearnDash), set Cache Logged-in Users to ON only if the plan is Business or higher (Object Cache is required to make logged-in cache safe) and add role-based excludes for any role that sees personalized content.

Image Optimization and CSS/JS Minification in LSCWP

Page cache handles repeat visits. Image optimization and minification handle the initial page weight that determines how fast a new visitor experiences the site. LSCWP includes both, and on Hostinger both run on the server so you do not need a separate image optimization plugin or minification service.

Image Optimization and WebP Conversion

Go to LiteSpeed Cache > Image Optimization. The key settings are:

  • Auto Request Cron: ON. This tells the plugin to submit images to LiteSpeed’s optimization service automatically rather than waiting for a manual trigger.
  • WebP Replacement: ON. LiteSpeed’s CDN and server can serve WebP versions of your JPEG and PNG images to browsers that support it. WebP files are typically 25 to 35 percent smaller than JPEG at equivalent quality. The plugin creates WebP versions without deleting the originals, so browsers that do not support WebP (older Safari versions, some mobile browsers) still receive the JPEG or PNG.
  • Lossless Optimization: leave OFF for most sites. Lossless optimization reduces file size without any quality loss but produces smaller savings than lossy compression. Lossy is the default and is correct for the vast majority of WordPress photography and product images.

After saving, go to LiteSpeed Cache > Image Optimization > Summary and click Send Optimization Request. LSCWP submits your existing images to LiteSpeed’s optimization API in batches. The queue processes in the background; you do not need to keep the page open. Check back after an hour for the first batch results on a large image library.

CSS and JavaScript Minification

Go to LiteSpeed Cache > Page Optimization. The most impactful settings are under the CSS and JS tabs:

  • Minify CSS: ON. Removes whitespace, comments, and redundant characters from CSS files. Saves 10 to 30 percent of CSS file size with no visual change.
  • Combine CSS: use with caution on HTTP/1.1 sites. On HTTP/2 (which Hostinger supports), combining files provides less benefit because HTTP/2 multiplexes multiple files in parallel. Leave this OFF unless PageSpeed Insights specifically flags too many CSS requests.
  • Minify JS: ON. Same principle as CSS minification.
  • Defer jQuery: leave OFF. Deferring jQuery breaks many plugins that depend on it loading synchronously. The performance gain is small and the compatibility risk is high.
  • Load JS Deferred: ON. Defers non-critical JavaScript until after the page’s HTML parses, which improves the Time to Interactive score in PageSpeed Insights without affecting most plugin functionality.

After enabling minification, test your site thoroughly. Minification occasionally breaks themes or plugins that rely on JavaScript with non-standard syntax or that load scripts in a specific order. If something breaks after enabling, use the JS Excludes field to exempt the problematic script file by URL, and leave minification on for everything else.

Common Issues and Fixes

Changes to a page are not showing on the front end

The old cached HTML is still being served. Purge it from LiteSpeed Cache > Toolbox > Purge All. If content still lags, check whether Cloudflare or another proxy is in front of the site; you may need to purge there too.

Object Cache toggle is greyed out in hPanel

Object Cache (LSMCD) is a Business plan feature and above. If you are on the entry Premium plan, the switch is disabled by design. Upgrading to the Business plan exposes it, or you can stick with page cache alone; sites without heavy database queries do not miss it much.

PageSpeed score is still low after enabling cache

Caching fixes TTFB and repeat-visit speed but does nothing for images, unused CSS, or blocking JavaScript. If PageSpeed Insights still flags LCP or CLS after enabling cache, the fix is in image optimization and script deferral rather than more caching. LSCWP has image and CSS tabs that handle both, and the broader picture on Hostinger is covered in the Hostinger WordPress Optimization Guide, which walks through the rest of the speed stack once cache is running. Or jump straight to how to speed up WordPress on Hostinger for the priority-ordered checklist.

WordPress admin feels slower after enabling LSCWP

The plugin runs its own crawler and image optimization queue in the background. If the admin is sluggish, open LiteSpeed Cache > Crawler and set the crawler to run less frequently, or disable it entirely if you do not need proactive cache warming.

QUIC.cloud CDN and Cloudflare conflict

If you turn on both QUIC.cloud (LiteSpeed’s own CDN, integrated in LSCWP) and Cloudflare with full caching enabled, dynamic content can serve stale. The safe pattern on Hostinger is one dynamic-content cache layer at a time: use QUIC.cloud for dynamic caching and set Cloudflare to cache static assets only, or vice versa. If you want to run Hostinger’s own built-in CDN alongside cache instead, see how to enable Hostinger CDN on WordPress for the hPanel toggle path.

FAQs
Yes. The LiteSpeed Cache WordPress plugin is free, and Hostinger includes it on all WordPress hosting plans at no extra cost. Object Cache via LSMCD is a Business-plan feature and above, but the page cache portion works on every plan.
On new WordPress sites created through hPanel, LiteSpeed Cache is pre-installed and activated. On sites migrated from another host, you may need to install the LiteSpeed Cache plugin manually from the WordPress.org plugin directory.
LiteSpeed Cache stores fully-rendered HTML pages so PHP is skipped on repeat visits. Object Cache stores database query results in memory using LiteSpeed Memcached, which speeds up dynamic pages (cart, checkout, account, admin) that cannot use page cache. They are complementary and both should be on for a WooCommerce or membership site.
In WordPress admin, open LiteSpeed Cache > Toolbox > Purge and click Purge All. From hPanel, the Cache toggle in WordPress > Overview also clears the cache when toggled off and back on.
Yes. LSCWP ships with WooCommerce-aware defaults that exclude cart, checkout, and account pages from page cache automatically. For best results on Hostinger, upgrade to a Business plan so Object Cache is available for session and cart data.
Yes, but not with both caching dynamic content. The safe pattern is LiteSpeed for HTML page cache on the origin and Cloudflare for static asset delivery only. Turning on Cloudflare's "Cache Everything" rule on top of LSCWP causes stale content and purge conflicts.
Some of the links on this blog are sponsored links
Newsletter
Stay Ahead in Hosting

Expert hosting tips, reviews, and exclusive deals — delivered straight to your inbox. Join thousands of smart webmasters.

You're in! Thanks for subscribing.
Something went wrong — please try again.
No spam, ever. Unsubscribe in one click.
Top