ENTERPRISE Enterprise technology · Engineered for your business Enterprise Software · Managed Servers · Business E-mail · LiteSpeed + CloudLinux · Imunify360 Security · cPanel Control · Network profile up to 3 Gbps on eligible plans
HOSTING

LiteSpeed Cache In Depth: 10 Settings to Apply and Measure

A ten-step guide to configuring object cache, ESI, image optimisation and CDN integration with repeatable measurement.

Installing LiteSpeed Cache does not guarantee a particular performance result. Evaluate LSCache, object cache, ESI, CDN and image optimisation together with the theme, plugins, traffic and server resources. Measure each change in staging with the same test scenario.

1. Object Cache: Bind Redis or Memcached

Dynamic elements may query the database on each request; object cache aims to reduce that load by keeping frequent results in memory. Before enabling Redis or Memcached, verify server access, persistent connections, cache-key isolation and plugin compatibility, then measure the gain with query profiling.

2. ESI (Edge Side Includes) for Hybrid Cache

User-specific widgets complicate full-page caching. ESI can process personal fragments separately while caching shared page sections. Do not enable it in production before testing cart, session and personalisation flows with real user scenarios.

3. Image Lazy Load + WebP/AVIF Conversion

Lazy loading and WebP/AVIF conversion can reduce transfer size, with results depending on image content and quality settings. Do not defer above-the-fold images, preserve responsive sizes and compare visual quality after conversion.

4. Critical CSS and Render-Blocking JS

Critical CSS and deferred JavaScript can reduce render-blocking resources, but may break menus, forms, checkout or analytics. Enable settings one at a time and run functional regression tests alongside Core Web Vitals measurements.

5. CDN + QUIC.cloud Integration

When using more than one CDN layer, design DNS, TLS, cache keys, bypass and purge rules together. Do not assume a Cloudflare and QUIC.cloud combination will be conflict-free; test headers, sessions, carts and invalidation in staging.

6. Database Optimisation: revision, transient, spam cleanup

Old revisions, expired transients and spam records can grow the database. Take a verified backup before cleanup, review the affected tables and measure the result using table size and query duration.

7. Cache Exclusion List: What Should NOT Be Cached

  • Post-login pages (?logged_in=true)
  • Cart and checkout (WooCommerce auto-excludes /cart, /checkout, /my-account)
  • AJAX endpoints (?action=...)
  • Form submission pages (POST requests)
  • REST API endpoints (/wp-json/...)
  • Admin panel (/wp-admin/)

8. Browser Cache Headers

Set ExpiresByType and Cache-Control rules together with the asset-versioning strategy. Long-lived caching is safe only for hashed static assets that receive a new URL when changed. Verify the headers actually emitted by LSCache or the server template with curl and browser network tools, then remove conflicting directives.

9. Crawler / Cache Warming

When cache TTL expires, the first request may pay the regeneration cost. If a crawler is used, tune sitemap scope, URL priority, request rate and server budget together, then measure how many URLs it can complete. Validate mobile and desktop variants separately only when they produce distinct cache keys; otherwise avoid duplicate crawling.

10. Monitoring: Cache Hit Ratio

Monitor cache-hit ratio together with traffic type and page behaviour; there is no universal threshold. A low ratio may come from exclusions, short TTLs, session cookies or frequently changing content.

Results vary by theme, plugins, traffic, geography and infrastructure. Establish a baseline and compare each change using the same device, network and page scenario. The goal is not a single score but fast, reliable real-user journeys.

MORE

More posts in this category