search ]

LiteSpeed Cache – Complete Guide & Recommended Settings

When it comes to optimizing your WordPress website’s performance, the LiteSpeed Cache plugin stands out as a powerful solution, especially when running on a LiteSpeed server.

With its comprehensive feature set, this plugin can dramatically improve your site’s loading speeds, user experience, and even SEO rankings. However, with great power comes great complexity – the sheer number of settings can be overwhelming.

This guide breaks down the optimal configuration for each section of the LiteSpeed Cache plugin, providing you with recommended settings based on best practices for WordPress sites running on LiteSpeed servers. Let’s begin…

The settings in this guide are recommended defaults, if you’re unsure about anything, feel free to ask in the comments below for personalized help.

Dashboard

Dashboard - LiteSpeed Settings

Dashboard – LiteSpeed Settings

The Dashboard offers a quick overview of your site’s performance and its integration with QUIC.cloud services. It summarizes your usage of image optimization, page optimization, CDN bandwidth, and LQIP features, all in one place.

You’ll also see real-time indicators for cache layers, improvements in page speed metrics, and the status of critical services like object caching and crawlers.

This screen is primarily informational and helps you verify that everything is running smoothly. If you notice issues or want to dive deeper, links to relevant sections are just a click away.

The Dashboard helps you stay in control of your optimization strategy by visualizing resource usage, performance gains, and connectivity at a glance.

Presets

LiteSpeed Cache Standard PresetsThe Presets screen lets you apply a predefined configuration or transfer settings between sites for faster setup.

[1] Standard Presets

Choose a preset based on your site’s needs:

  • Standard: Best for most WordPress sites.
  • Aggressive / High Performance: Offer more speed but require testing.

Start with “Standard” and fine-tune only if needed.

[2] Import/Export

Easily reuse configurations across sites:

  • Import: Upload a saved config file.
  • Export: Save your current settings.

General

The General settings control plugin-wide behavior and key performance features like Guest Mode and access to online services. They serve as the global switches that determine how LiteSpeed Cache interacts with your server and frontend optimizations.

[1] Online Services

QUIC.cloud Online Services

This section confirms whether your site is connected to QUIC.cloud. Once connected, services like image optimization, VPI, and LQIP are enabled.

Connection to QUIC.cloud is optional but unlocks powerful cloud optimization features. No need to validate a domain key manually if already integrated.

[2] General Settings

LiteSpeed Cache General Settings

This section includes core configuration options that impact how the LiteSpeed Cache plugin behaves globally, especially for first-time visitors and integration with cloud services.

  • ONAutomatically Upgrade: Ensures LiteSpeed Cache updates automatically when a new version is released. Disable if you prefer manual updates.
  • ONGuest Mode: Enables always-cacheable landing pages for new visitors and handles advanced cache variation via AJAX. Useful for dynamic themes and devices.
  • OFFGuest Optimization: This setting enables advanced optimizations like UCSS and CCSS for Guest Mode via QUIC.cloud. Use with caution, it relies on external QUIC.cloud services, and if not properly configured, may cause layout shifts or style issues for first-time visitors.
  • Server IP: Set your server’s IP here so that LiteSpeed services (like CDN and optimization) can connect directly without relying on DNS resolution. This reduces lookup overhead.
  • ONNotifications: Displays news, hotfixes, beta releases, and promotions directly within the plugin interface.

Guest Mode and Guest Optimization work together to maximize first-visit speed, but use caution when enabling both. They may modify your .htaccess, clear optimization queues, and impact certain theme/plugin behaviors.

⚠️ Note: Enabling Guest Optimization may break site layout or functionality in some themes, especially those heavily reliant on dynamic CSS or JavaScript. Be sure to test thoroughly before using in production.

[3] Tuning

 - LSCache

The Tuning section allows you to control how Guest Mode behaves for specific visitors. You can exclude certain user agents (like bots or crawlers) or cookies from Guest Mode or cache entirely. This is useful for preventing conflicts with A/B testing tools, analytics scripts, or logged-in experiences that rely on dynamic content.

Proper tuning helps maintain Guest Mode performance while avoiding caching issues with incompatible services or visitors who should bypass cached versions.

Use this section to fine-tune exceptions for Guest Mode and ensure stable behavior across all user types without disabling optimization globally.

Cache

This section allows you to fine-tune which content gets cached and how the cache behaves in various scenarios. It includes configuration for exclusions, cache duration, purge triggers, and advanced logic like ESI and object caching.

[1] Cache

Cache Control Settings - LiteSpeed Cache

This section defines which types of requests and visitors are eligible for caching. Enabling the right options here can significantly improve performance by reducing server load and delivering pages faster.

  • ONEnable Cache: The master switch for enabling LiteSpeed Cache on your site.
  • OFFCache Logged-in Users: Disabled by default to prevent serving cached content to users with dynamic or personalized dashboards. Enable only if you’ve tested thoroughly on membership or intranet-style sites.
  • ONCache Commenters: Caches pages for users who have commented but aren’t logged in. Improves performance on discussion-heavy content.
  • ONCache REST API: Caches WordPress REST API requests to improve response speed, especially for headless or AJAX-heavy themes.
  • ONCache Login Page: Improves performance on login pages but may need testing with security plugins.
  • ONCache PHP Resources: Caches pages rendered by PHP includes, useful for themes/plugins that serve dynamic content via PHP. Edits the .htaccess file.
  • OFFCache Mobile: Disabled by default. Enable only if your theme or site serves completely different layouts or content to mobile users. Turning this on will modify your .htaccess and reset the crawler list.

Enable only the cache options relevant to your setup. Features like mobile cache and PHP resources caching can greatly improve performance, but test carefully if your theme is highly dynamic.

[2] TTL

TTL Settings - LiteSpeed Cache

TTL (Time To Live) settings define how long specific types of content stay in cache before they expire and are regenerated. Adjusting these values helps balance between performance and content freshness depending on how frequently your content updates.

  • Default Public Cache TTL: 604800 seconds (1 week), for pages accessible to all users.
  • Default Private Cache TTL: 1800 seconds (30 minutes), for personalized content like logged-in user views.
  • Default Front Page TTL: 604800 seconds (1 week), controls how often the homepage is refreshed.
  • Default Feed TTL: 604800 seconds (1 week), used for RSS/Atom feeds. Setting below 30 disables caching.
  • Default REST TTL: 604800 seconds (1 week), applies to REST API responses.
  • Default HTTP Status Code Page TTL: Set custom TTL for specific status codes like:
    • 403 3600, cache “Forbidden” pages for 1 hour
    • 404 3600, cache “Not Found” pages for 1 hour
    • 500 3600, cache “Server Error” pages for 1 hour

Longer TTLs improve performance but may serve stale content. For frequently updated pages, lower TTLs ensure users see the latest version sooner.

[3] Purge

The Purge settings determine when cached content should be automatically cleared and regenerated. Proper configuration here helps ensure visitors receive fresh, up-to-date content without manual intervention, especially after site changes.

  • ONPurge All On Upgrade: Automatically clears the cache when a plugin, theme, or WordPress core is updated.
  • Auto Purge Rules For Publish/Update: Select which page types to purge when a post or page is created or updated. Recommended options include:
    • Front page and Home page
    • Pages and Post type archive
    • Term archive (categories, tags, taxonomies)

    Additional options like author, yearly, and monthly archives may be selected based on your site’s structure.

  • OFFServe Stale: Disabled by default to avoid serving outdated content. Consider enabling if your site experiences traffic spikes or slow regeneration times, as it can maintain speed while the new cache is being built.
  • Scheduled Purge URLs: Add specific URLs to be purged at regular intervals if needed (one per line).

Configure purging thoughtfully—over-purging can reduce performance, while under-purging may result in outdated content. “Serve Stale” offers a good middle ground by keeping things fast during regeneration.

[4] Excludes

The Excludes tab allows you to define specific content types or request patterns that should bypass caching. This is essential for ensuring dynamic pages, user-specific views, or third-party tools operate correctly without interference from cached responses.

  • Do Not Cache URIs: Add page paths like /checkout/, /cart/, or custom dashboard pages that require dynamic updates.
  • Do Not Cache Query Strings: Exclude specific query parameters (e.g., utm_, ref=) to avoid cache conflicts in marketing or tracking campaigns.
  • Do Not Cache Categories / Tags: Add category or tag slugs to exclude specific taxonomy archive pages from caching. Useful if you have dynamic widgets on those pages.
  • Do Not Cache User Agents: Specify bots, tools, or specific browsers that should bypass the cache. Each entry should be on a new line.
  • Do Not Cache Roles: Select user roles (e.g., Administrator, SEO Editor) that should always bypass the cache to see real-time content updates or work with draft elements.

Excluding pages and roles from caching is crucial for accurate behavior in areas like WooCommerce carts, logged-in dashboards, or SEO testing environments.

[5] ESI (Edge Side Includes)

ESI Settings

ESI allows for fine-grained caching control by treating parts of a page as separate cache blocks. This is especially useful for logged-in user experiences, WooCommerce carts, comment forms, or admin bars that should remain dynamic while the rest of the page is cached.

  • OFFEnable ESI: Disabled by default. Turn on only if your site requires partial caching of dynamic content like WooCommerce carts or user-specific widgets. Requires extra configuration and may increase complexity.
  • ONCache Admin Bar: Caches the WordPress admin toolbar block separately using ESI.
  • ONCache Comment Form: Enables ESI for comment forms to preserve interaction without disabling page cache.
  • ESI Nonces: Add WordPress nonces that should be excluded from full-page cache and served dynamically. Useful for plugins or forms that rely on secure, time-sensitive tokens.
  • Vary Group: Assign specific user roles (like Administrator) a custom Vary Group ID if you want to serve different cached versions of a page to different user roles.

ESI is powerful but should be used cautiously. Test thoroughly when enabling to ensure compatibility with dynamic plugins or role-based content delivery.

[6] Object

Object Cache Settings

The Object Cache screen enables server-side caching of frequently executed database queries using Memcached or Redis. This significantly reduces database load and improves performance, particularly on dynamic or high-traffic websites.

  • OFFObject Cache: Disabled by default. Enable only if your server supports Redis or Memcached and you’ve confirmed it’s properly configured. Object caching can significantly improve performance on dynamic or database-heavy sites when used correctly.
  • Method: Select between Memcached and Redis. Both are effective; use whichever is supported by your host.
  • Host & Port: Configure connection details (typically 127.0.0.1 and 11211 for Memcached or 6379 for Redis).
  • Default Object Lifetime: Set TTL for cached database objects, e.g., 3600 seconds (1 hour).
  • Global Groups: WordPress object groups that are shared network-wide and should always be cached.
  • Do Not Cache Groups: Specify groups like sessions or comments that should be excluded from object caching.
  • ONPersistent Connection: Enables long-lived connections for better performance.
  • ONCache WP-Admin: Improves speed of admin dashboard (note: may show outdated data; enable with caution).
  • ONStore Transients: Stores WordPress transients in memory, improving their retrieval time.

Object caching is especially beneficial for sites with lots of logged-in users or database-intensive plugins. Always test both Memcached and Redis to see which performs better for your setup.

[7] Browser

Browser Cache Settings

This section manages how static files (like images, JavaScript, and CSS) are cached in the user’s browser. Enabling browser caching reduces repeated requests and improves load times for returning visitors by storing resources locally.

  • ONBrowser Cache: Activates browser-level caching for static assets. This setting modifies the .htaccess file to apply proper cache-control headers.
  • Browser Cache TTL: Set to 31557600 seconds (1 year), which is optimal for long-term caching of versioned files.

Browser caching is essential for performance. Make sure to use versioned file names (e.g., style.css?v=2.0) to avoid serving outdated files when making updates.

[8] Advanced

The Advanced settings section is intended for experienced users who need to customize cache behavior for special cases like AJAX requests, login cookies, or cross-protocol compatibility.

Use these options with caution, as improper configuration can affect caching accuracy or increase server load.

  • AJAX Cache TTL: Allows you to cache specific AJAX POST/GET actions. Define the action and TTL in seconds per line.
  • Login Cookie: Custom login cookie identifier. Required when running multiple web applications on the same domain to avoid login detection conflicts. Default is _lscache_vary.
  • Vary Cookies: Lets you add additional cookies to distinguish cache variations (e.g., for A/B testing or multilingual setups).
  • OFFImprove HTTP/HTTPS Compatibility: Disabled by default. Only enable if your site serves both HTTP and HTTPS URLs, which is rare. Most modern sites should be fully HTTPS, making this setting unnecessary.
  • ONInstant Click: Preloads page content when a user hovers over a link, improving perceived speed. May slightly increase server load.

Only adjust advanced options when you fully understand their impact. Misuse can lead to inconsistent cache behavior across users and sessions.

CDN

Content Delivery Network integration can dramatically improve global reach and loading times. This section allows you to configure CDN services to deliver your static assets from servers located closer to your visitors.

[1] QUIC.cloud

QUIC.cloud CDN Status Overview

QUIC.cloud is LiteSpeed’s own content delivery network (CDN) built specifically for WordPress performance. It improves global TTFB by caching both dynamic and static assets across multiple edge locations. It’s also a requirement for using certain LiteSpeed Cloud features like image optimization and critical CSS.

  • OFF – Enable QUIC.cloud CDN only after you’ve configured your DNS properly (either through LiteSpeed DNS, Cloudflare in proxy mode, or other supported setups).

QUIC.cloud offers performance benefits for dynamic and static caching. Enable only if you are ready to manage DNS changes or already use a supported CDN integration.

[2] Cloudflare

LiteSpeed Cache can integrate with Cloudflare’s API to automatically purge cache and sync basic settings like development mode, minification, and more.

  • OFF – Enable only if you want LiteSpeed to control your Cloudflare settings directly from WordPress.
  • Cloudflare API Token: Add only when integration is enabled and properly tested.

This integration is optional. It’s useful if you want unified control, but not necessary if you already manage Cloudflare manually or via their own dashboard.

[3] Other Static CDN

If you’re using a third-party CDN like Bunny.net, KeyCDN, or CloudFront, you can enable CDN mapping and control how assets are replaced across your site.

  • ON – Use CDN Mapping: Replaces static URLs with your CDN endpoint.
  • CDN URL: The full URL of your CDN (e.g., https://cdn.yoursite.com).
  • HTML Attribute To Replace: Define which attributes (like src or href) should be rewritten.
  • Original URLs: Your site’s domain(s) that should be replaced (auto-filled by default).
  • Included Directories: Typically wp-content and wp-includes, to limit CDN use to static assets.
  • Exclude Path: Use to prevent specific files or folders from being served via the CDN.

CDN mapping improves asset delivery speed. Always check critical features (like fonts or third-party scripts) after enabling to ensure they work as expected.

Image Optimization

This section allows you to optimize image delivery through compression, lazy loading, and WebP conversion. Most optimization processes are handled via QUIC.cloud, minimizing load on your server.

[1] Image Optimization Summary

Optimize images with our QUIC.cloud serverLearn

This page shows how many images are pending, optimized, or failed, and lets you manually trigger optimization tasks. It’s useful for tracking progress and re-optimizing if needed.

  • Status Table: View number of optimized, failed, or pending images
  • Resend Optimization Request: For stuck images

[2] Image Optimization Settings

Image Optimization Settings - LSCache

This section controls how images are optimized and delivered, including automation, compression type, WebP/AVIF formats, and fallback attributes. Proper setup here ensures faster loading without compromising visual quality.

  • ONAuto Request Cron: Automatically requests new optimization tasks in the background without manual triggers.
  • ONOptimize Original Images: Reduces file sizes of original uploads and saves server space.
  • OFFRemove Original Backups: Permanently deletes pre-optimized images. Not recommended unless storage is extremely limited.
  • ONOptimize Losslessly: Uses a lossless algorithm to preserve quality. May result in larger files.
  • OFFPreserve EXIF/XMP Data: Only enable if metadata is essential (e.g., for photographers).
  • Next-Gen Image Format: Choose between WebP and AVIF for modern image delivery. AVIF is more efficient but not supported on all devices.
  • WebP/AVIF Attribute to Replace: Customize which HTML attributes will be replaced with optimized versions (e.g. img.src, div.data-src).
  • OFFWebP/AVIF for Extra Srcset: Enable only if you serve images via custom srcset outside of WordPress logic.

Optimized images speed up your website and reduce server bandwidth. Be careful with irreversible options like removing backups, and test WebP/AVIF compatibility before enabling.

Page Optimization

These settings control how your site handles HTML, CSS, and JavaScript delivery, significantly affecting load times and Core Web Vitals. Careful tuning can eliminate render-blocking resources and improve FCP and LCP scores.

[1] CSS Settings

CSS Settings

This section handles how your CSS files are optimized for better performance and faster page rendering. It includes minification, combining, async loading, UCSS generation, and font rendering behavior.

  • ONCSS Minify: Removes unnecessary characters from CSS files to reduce size.
  • OFFCSS Combine: Not recommended when using HTTP/2, as parallel requests are more efficient than combining files.
  • ONGenerate UCSS: Uses QUIC.cloud to generate unused CSS removal per page. Note: Bypassed if CSS Combine is off.
  • ONUCSS Inline: Inlines the unique CSS generated by QUIC.cloud for better performance.
  • ONCSS Combine External and Inline: Also includes inline styles in the combined file.
  • OFFLoad CSS Asynchronously: Disabled by default. This setting can improve performance but may cause layout issues if not properly configured. Enable only if you’ve
    tested it thoroughly and understand how it interacts with UCSS and critical CSS.

Use this option carefully—misuse can lead to flashes of unstyled content (FOUC) or broken page layouts.

  • OFFCCSS Per URL: Use only if you need CCSS per post/page. Saves quota but may cause styling issues on dynamic layouts.
  • ONInline CSS Async Lib: Inlines the async loader to ensure styles load properly even with JavaScript delays.
  • Font Display Optimization: Set to Swap for faster perceived load by allowing text to display before webfonts finish loading.

CSS optimizations like async loading and UCSS can significantly improve performance, especially for mobile visitors. Always test thoroughly when enabling these options to ensure no visual regressions.

[2] JS Settings

JS Settings

This section focuses on JavaScript optimization to improve load times and reduce render-blocking behavior. Options include minification, combining files, and deferring JS execution.

  • ONJS Minify: Removes extra characters from JS files to reduce file size.
  • OFFJS Combine: Not necessary when using HTTP/2, which handles multiple parallel requests efficiently. Combining scripts may introduce compatibility issues and is generally discouraged unless required for legacy setups.
  • ONJS Combine External and Inline: Also includes inline JS and external files when combining. Useful for global JS consolidation.
  • DeferredLoad JS Deferred: Loads scripts after the HTML is parsed, improving performance and Core Web Vitals like FID. Use “Delayed” if scripts should wait until interaction.

JS optimization can greatly enhance perceived performance, but may cause layout or script errors. Always test thoroughly after enabling Combine and Defer options.

[3] HTML Settings

HTML Settings

This section includes advanced options to reduce HTML output size, improve DNS resolution, and strip unnecessary elements like emojis, Google Fonts, or noscript tags. These optimizations can help speed up page rendering and reduce bandwidth usage.

  • ONHTML Minify: Strips out unnecessary spaces and comments in the HTML output to reduce page size.
  • DNS Prefetch: Allows you to manually specify external domains to pre-resolve, improving load time for third-party resources.
  • OFFDNS Prefetch Control: Disabled because automatic prefetching may introduce unnecessary DNS lookups and increase page complexity. It’s better to manually define only the essential domains using the DNS Prefetch setting.
  • DNS Preconnect: Lets the browser initiate early connections to specified origins for faster resource fetching.
  • HTML Lazy Load Selectors: Enables lazy loading for custom off-screen HTML elements by selector. Useful for delaying non-critical content.
  • HTML Keep Comments: Allows retention of specific HTML comments during minification by matching text. Helpful for preserving dynamic placeholders.
  • ONRemove Query Strings: Removes version/query strings from static resource URLs to improve caching efficiency.
  • OFFLoad Google Fonts Asynchronously: Disabled because loading fonts asynchronously may still delay rendering and introduce layout shifts. Consider self-hosting fonts or removing Google Fonts entirely for better performance and privacy.
  • ONRemove Google Fonts: Completely disables loading Google Fonts from your pages.
  • ONRemove WordPress Emoji: Prevents loading of the default WP emoji script. Browser-native emoji will still display.
  • ONRemove Noscript Tags: Removes all <noscript> tags from the HTML output to reduce DOM size.

While many of these settings provide great performance benefits, make sure to test critical design elements like fonts and third-party tools after applying them.

[4] Media Settings

Media Settings

This section controls lazy loading behavior, image placeholders, LQIP generation, and WordPress image compression. Proper configuration here can reduce load times and improve Core Web Vitals scores.

  • ONLazy Load Images: Delays loading images until they enter the viewport, reducing initial requests.
  • Basic Image Placeholder: Default base64 image used before the real image loads. Can be customized in wp-config.php.
  • ONResponsive Placeholder: Keeps layout stable by maintaining image dimensions during load.
  • Responsive Placeholder SVG: Custom SVG used as a responsive placeholder, converted to base64 on the fly.
  • Responsive Placeholder Color: Hex color used to fill SVG placeholder. Default: #cfc4db.
  • ONLQIP Cloud Generator: Uses QUIC.cloud to create Low Quality Image Placeholders for better perceived load time.
  • LQIP Quality: Currently set to 4. Higher values improve quality but increase size and usage quota.
  • LQIP Minimum Dimensions: Set to 150×150 pixels. Images smaller than this won’t get LQIP.
  • ONGenerate LQIP in Background: Handles generation asynchronously with cron, improving admin performance.
  • ONLazy Load Iframes: Delays iframe loading until they enter the viewport.
  • ONAdd Missing Sizes: Adds width and height attributes to prevent layout shift and improve CLS. Requires lazy load enabled.
  • WordPress Image Quality Control: Leave the default setting. Controls image compression level during WordPress image generation (default is 82).

To optimize visual performance and improve Core Web Vitals, it’s recommended to enable lazy load, use responsive placeholders, and generate LQIP in the background.

[5] Viewport Images (VPI)

Viewport Images

This setting optimizes lazy loading by detecting which images appear above the fold and excluding them from lazy load. It helps ensure faster visual rendering for the initial screen.

  • ONViewport Images: Automatically excludes above-the-fold images from lazy load to improve first paint and LCP.
  • ONViewport Images Cron: Automates VPI generation using a background cron job.

This feature enhances user-perceived performance by ensuring that the most important images load immediately, especially useful for mobile users and Core Web Vitals.

[6] Media Excludes

This section lets you prevent specific images, iframes, or URLs from being lazy loaded or optimized. It’s especially useful for avoiding layout shifts or conflicts with key visual elements.

  • Lazy Load Image Excludes: Leave blank or specify exact image URLs or patterns to prevent lazy loading.
  • Lazy Load Image Class Name Excludes: wmu-preview-img, no-lazy, disables lazy load for any image with these classes.
  • Lazy Load Image Parent Class Name Excludes: (Empty), can be used if you want to exclude all images inside a specific container.
  • Lazy Load Iframe Class Name Excludes: (Empty), define iframe classes to skip lazy loading.
  • Lazy Load Iframe Parent Class Name Excludes: (Empty), skip iframe lazy loading based on parent container classes.
  • Lazy Load URI Excludes: (Empty), allows skipping lazy loading on specific pages or post types by matching URI patterns.
  • LQIP Excludes: Prevents low-quality image placeholders on specific images.

Use exclusions sparingly and only for elements that require full loading immediately or where lazy loading causes visual or functional issues.

[7] Localization

Localization Settings

This section is used to cache Gravatar images locally and localize external JavaScript resources to reduce external HTTP requests and speed up loading.

  • ONGravatar Cache: Stores avatar images locally to reduce Gravatar load time.
  • ONGravatar Cache Cron: Automatically refreshes cached Gravatar images.
  • Gravatar Cache TTL: Set to 604800 seconds (1 week), the duration Gravatar images are cached.
  • OFFLocalize Resources: Disabled because serving external scripts locally (like Google Analytics or reCAPTCHA) can lead to functionality issues, outdated scripts, or compliance concerns. Use with caution and only if you fully understand the implications.
  • Localization Files: Includes external URLs like:
    • https://www.google.com/recaptcha/api.js
    • https://www.google-analytics.com/analytics.js
    • https://www.googletagmanager.com/gtag/js
    • https://www.googletagmanager.com/gtm.js
    • https://www.googletagservices.com/tag/js/gpt.js

Localizing third-party scripts can reduce external calls but should be tested carefully to avoid breaking analytics or ad tracking functionality.

[8] Tuning Settings

These advanced options help fine-tune the behavior of JavaScript and CSS optimization. They’re especially useful for resolving compatibility issues or targeting performance optimizations to specific user groups.

  • JS Delayed Includes: Add specific JS files or patterns to be delayed (loaded after user interaction).
  • JS Excludes: Prevent specific JS files from being minified or combined if they cause layout issues.
  • JS Deferred/Delayed Excludes: Exclude critical JS from deferring or delaying to avoid frontend errors.
  • Guest Mode JS Excludes: JS files listed here will not be optimized in Guest Mode, useful for dynamic scripts.
  • URI Excludes: Prevent optimization on specific page paths (like checkout, login, or dashboard pages).
  • ONOptimize for Guests Only: Restricts CSS/JS optimization to guests for safety and performance balance.
  • Role Excludes: Lets you exclude specific WordPress roles from optimizations (e.g., Editor, Administrator).

Use the Tuning panel to prevent conflicts on sensitive pages or scripts. This is particularly helpful when dealing with third-party integrations or role-specific features.

[9] Tuning – CSS

This section offers precise control over CSS optimization, particularly for Critical and Unused CSS (CCSS/UCSS). Use these settings to resolve display issues, prevent layout shifts, or handle dynamic content more gracefully.

  • CSS Excludes: Prevent specific stylesheets from being minified, combined, or loaded asynchronously.
  • UCSS File Excludes and Inline: Prevent certain stylesheets from being processed by Unused CSS and optionally force them inline.
  • UCSS Selector Allowlist: Ensure specific CSS selectors are never removed, even if detected as unused (e.g., animation classes).
  • UCSS URI Excludes: Skip UCSS optimization for specified page URLs. Useful for dynamic or interactive layouts.
  • Separate CCSS Cache Post Types: Generate separate Critical CSS per post type. Recommended when layouts differ significantly.
  • Separate CCSS Cache URIs: Generate CCSS for specific pages. Improves rendering accuracy at the cost of extra processing.
  • CCSS Selector Allowlist: Keep essential selectors in all Critical CSS files to prevent layout flickers.
  • Critical CSS Rules: Define CSS rules that should always be injected into the critical path. Useful for site-wide elements like headers or menus.

Fine-tuning Critical and Unused CSS helps balance speed with visual integrity. Be cautious when excluding or forcing styles—test thoroughly across templates and devices.

Database

A clean, optimized database improves query speed and overall site performance. This section helps you set up automatic database maintenance to keep your WordPress installation running smoothly.

[1] Manage

Manage Database LiteSpeed

This section helps clean up unnecessary or outdated database entries to reduce overhead and improve performance.

You can manually delete revisions, spam comments, auto drafts, transients, and more, streamlining your database without affecting active content.

  • Clean All: Runs a bulk cleanup across all categories (revisions, drafts, spam, etc.).
  • Post Revisions: Deletes old post revisions beyond the last 4 and older than 120 days.
  • Orphaned Post Meta: Removes leftover meta entries from deleted posts.
  • Auto Drafts: Clears autosaved drafts no longer in use.
  • Trashed Posts & Comments: Cleans up deleted content sitting in the trash.
  • Spam Comments: Removes spam comments automatically marked by moderation tools.
  • Trackbacks/Pingbacks: Deletes unused or outdated trackbacks and pingbacks.
  • Expired Transients: Clears expired temporary options used by plugins and themes.
  • All Transients: Removes all transients, useful if expired values weren’t cleared properly.
  • Optimize Tables: Runs a MySQL table optimization to reclaim unused space and improve speed.

Regular database cleanups can significantly improve backend performance and reduce disk usage, especially for sites with frequent content updates or comment activity.

[2] DB Optimization Settings

These settings control how post revisions are retained when performing database cleanup. This helps reduce unnecessary database bloat while still keeping recent changes for safety.

  • Revisions Max Number: Set to 4 – keeps the last 4 revisions per post before deletion.
  • Revisions Max Age: Set to 120 days – revisions newer than 120 days will be preserved.

Limiting both the number and age of revisions is an effective way to maintain a lean database without losing access to recent edits.

Crawler

The crawler helps pre-warm your cache by visiting pages automatically in the background. This ensures your visitors receive the fastest cached version even after content updates.

[1] Summary

The crawler status and statistics give you insights into which URLs were scanned, skipped, or failed. Use this data to identify gaps in cache coverage.

[2] Map

Displays the sitemap or internal link structure used by the crawler. You can customize or upload your own sitemap to control what’s included.

[3] Blocklist

Allows you to block specific URIs, query strings, or patterns from being crawled, useful for excluding high-CPU or dynamic pages.

[4] Settings

Crawler General Settings

This section controls how the LiteSpeed Cache Crawler behaves, ensuring cached content remains fresh and ready for visitors by simulating traffic based on the sitemap.

  • ONCrawler: Enables cron-based pre-caching of site content.
  • Crawl Interval: Set to 302400 seconds (approx. 3.5 days) between full sitemap crawls.
  • Custom Sitemap: You must add your sitemap URL here (e.g., https://yourdomain.com/sitemap_index.xml) to define the source of URLs the crawler will pre-cache.
  • Server Load Limit: Default is set to 1. You can increase the limit according to your server strength & resources. Prevents the crawler from overloading the server.
  • Role Simulation: Empty, only guest crawling is used unless ESI is enabled and roles defined.
  • Cookie Simulation: Not configured, can simulate visitors based on cookie values if needed.

The crawler ensures critical pages stay warm in the cache, improving TTFB and performance for first-time visits. Monitor server load to avoid excessive resource usage.

Toolbox

LiteSpeed Cache Toolbox

The Toolbox provides quick access to critical maintenance functions like cache purge, .htaccess edits, critical CSS reset, and domain key management.

This section helps troubleshoot, test, and reset LiteSpeed settings without navigating through the full settings panels.

More details and descriptions for each setting will be added here soon.

Summary: Optimal LiteSpeed Cache Configuration

Now that we’ve covered every section of the LiteSpeed Cache plugin, it’s time to review the most impactful takeaways and best practices to ensure your WordPress site runs at peak performance.

LiteSpeed Cache is far more than just a page caching plugin, it’s a full-stack optimization system that touches everything from server response to frontend rendering.

When configured correctly, it can dramatically reduce load times, boost Core Web Vitals scores, and improve the experience for both users and search engines.

  • Start with a preset: Use the “Standard” preset as a base, then customize settings for your site’s specific needs.
  • Cache wisely: Cache all public-facing content, but always exclude dynamic pages like login, cart, checkout, and user dashboards.
  • Enable Guest Mode + Optimization: Huge performance benefits for first-time, anonymous visitors.
  • Use QUIC.cloud CDN: Seamless integration, dynamic CDN support, and essential for Guest Optimization and Critical CSS generation.
  • Optimize images: Use WebP and lazy loading, and run image optimization automatically in the background.
  • Fine-tune Page Optimization: Minify, combine, and defer JS/CSS, but test carefully with your theme and plugins.
  • Schedule database cleanups: Weekly cleanups remove bloat and speed up backend operations.
  • Use the crawler: Pre-warm your cache before traffic peaks to deliver snappy performance consistently.

Remember: Every WordPress site is unique. After applying these recommended settings, test thoroughly across devices and page types. Tools like Google PageSpeed Insights, GTmetrix, and WebPageTest are your allies for tracking improvements.

With the right LiteSpeed Cache configuration, your WordPress site can deliver lightning-fast performance with minimal effort, giving your users a better experience and your business a competitive edge.

For more advanced use cases, troubleshooting tips, or integration guides, visit the official LiteSpeed Cache documentation.

0 Comments...

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development