Hostinger WordPress Caching: LiteSpeed Cache Complete Setup Guide
LiteSpeed Cache on Hostinger WordPress handles full-page caching, object caching, browser caching, image optimization, CSS/JS minification, and database cleanup in one plugin. Enable all modules via LiteSpeed Cache → Dashboard. Do not install additional caching plugins like WP Rocket or W3 Total Cache — they conflict with LiteSpeed on Hostinger's server.
How LiteSpeed Cache Works on Hostinger
LiteSpeed Cache serves pages from server memory without PHP execution — delivering 30-60ms TTFB. It auto-purges when content changes. Works exclusively with Hostinger's LiteSpeed server.
LiteSpeed Cache is unique among WordPress caching plugins because it operates at the web server level, not just the plugin level. On Hostinger's LiteSpeed web server, cached pages are served directly from the server's memory without executing PHP at all. This is fundamentally different from WP Rocket or W3 Total Cache, which still require PHP to serve cached files.
The result: cached pages on Hostinger deliver TTFB of 30-60ms — comparable to static HTML pages hosted on a CDN. Uncached WordPress pages typically show 150-400ms TTFB. The cache is invalidated automatically when you publish or update content.
Full-Page Cache Setup
This is the most impactful setting. Enable in LiteSpeed Cache → Cache:
- Enable Cache: ON
- Cache TTL: 604800 (1 week) — pages stay cached for 7 days unless updated
- Cache Logged-in Users: OFF for most sites. ON only for membership sites where logged-in content is identical.
- Cache Mobile: ON (creates separate cache for mobile visitors)
- Cache REST API: ON
- Private Cache: Enable for WooCommerce sites — caches personalized content (cart widget, user greeting) separately per user
Exclusion rules: WooCommerce cart, checkout, and my-account pages are excluded automatically by LiteSpeed Cache's WooCommerce detection. Verify in LiteSpeed Cache → Cache → Excludes.
Object Cache & Browser Cache
Object Cache (LiteSpeed Cache → Cache → Object):
- On shared hosting: Enable with file-based backend (default). Stores database query results to reduce MySQL load.
- On VPS: Connect Redis for faster object caching. Install Redis on your VPS, then set Host to 127.0.0.1 and Port to 6379.
Browser Cache (LiteSpeed Cache → Cache → Browser):
- Enable Browser Cache: ON
- Browser Cache TTL: 2592000 (30 days)
- This sets proper
Cache-ControlandExpiresheaders so returning visitors load static assets from their local browser cache instead of re-downloading.
Image Optimization with LiteSpeed Cache
LiteSpeed Cache → Image Optimization:
- Auto Request Cron: ON — automatically sends new images for optimization
- Auto Pull Cron: ON — automatically pulls optimized images back
- WebP Replacement: ON — serves WebP to supported browsers (all modern browsers)
- Optimization Level: 2 (lossy) for maximum file size reduction with minimal visible quality loss
Run an initial bulk optimization: Image Optimization → Send Optimization Request → optimize all existing images. For sites with 1,000+ images, this may take several hours to process through LiteSpeed's optimization servers.
CSS & JavaScript Optimization
LiteSpeed Cache → Page Optimization:
- CSS Minify: ON — removes whitespace from CSS files
- CSS Combine: ON (test first — can cause issues with some themes)
- CSS HTTP/2 Push: ON — pushes critical CSS with the initial HTML response
- JS Minify: ON
- JS Combine: OFF (usually breaks things on modern WordPress)
- JS Defer: ON — defers non-critical JS to after page render
- JS Delay: Add known non-critical scripts: analytics, chat widgets, social sharing buttons
- Load CSS Asynchronously: ON
- Generate Critical CSS: ON — creates inline CSS for above-the-fold content
Database Optimization & Purge
LiteSpeed Cache → Database:
- Clean All: Post Revisions, Auto Drafts, Trashed Posts, Spam Comments, Trashed Comments, Expired Transients
- Optimize Tables: ON (defrags MySQL tables for faster queries)
Run monthly or set up a cron job. A cluttered database with thousands of revisions and expired transients adds measurable latency to uncached page generation.
Cache Purge: LiteSpeed Cache purges automatically when content is updated. For manual purge: admin bar → LiteSpeed Cache → Purge All. Use after theme changes, plugin installations, or any change that should be reflected immediately.
Frequently Asked Questions
Should I use WP Rocket instead of LiteSpeed Cache on Hostinger?
No — LiteSpeed Cache works at the server level on Hostinger's LiteSpeed web server, providing faster caching than WP Rocket can achieve on this infrastructure. WP Rocket is designed for Apache/Nginx servers. Using both causes conflicts. Stick with LiteSpeed Cache on Hostinger.
Why is my site showing old content after updates?
The cache is serving a stale version. Purge the cache: admin bar → LiteSpeed Cache → Purge All. If using CDN, also purge the CDN cache in hPanel → Performance → CDN → Purge Cache. Auto-purge should handle this, but it can take a few minutes to propagate.
Does LiteSpeed Cache work with WooCommerce on Hostinger?
Yes — LiteSpeed Cache has built-in WooCommerce compatibility. It automatically excludes cart, checkout, and my-account pages from public caching while using private cache for personalized elements like cart widgets. Enable ESI (Edge Side Includes) for optimal WooCommerce performance.
Can LiteSpeed Cache replace multiple optimization plugins?
Yes — LiteSpeed Cache replaces the need for separate caching plugins (WP Rocket, W3 Total Cache), image optimization plugins (Smush, ShortPixel for basic needs), minification plugins, and database cleanup plugins. It's a comprehensive all-in-one optimization solution.
How do I know if LiteSpeed Cache is working on Hostinger?
Check the page source or HTTP response headers. Cached pages include a header: X-LiteSpeed-Cache: hit. In Chrome DevTools → Network → click any page request → look for this header. Also check TTFB: cached pages should be 30-60ms; uncached pages show 150-400ms.
Get Hostinger WordPress with LiteSpeed Cache
Server-level caching, image optimization, and CSS/JS minification included. From $2.99/mo.
Try Hostinger WordPressHenry Fontaine
Chief of Staff & COO, RocketLabs
AI-native operator building the future of search visibility. Part of the team behind 3 tech exits and 400+ programmatic SEO deployments.