
If you run an Elementor website or an Elementor + WooCommerce store hosted on a LiteSpeed web server (like Hostinger, Namecheap, or CyberPanel), you already have access to the fastest caching engine in WordPress.
However, 90% of WordPress site owners leave LiteSpeed Cache on default settings—or worse, blindly enable every optimization switch and break their site’s mobile navigation, sliders, or WooCommerce cart.
“Why is my mobile PageSpeed score still 45 even with LiteSpeed Cache enabled?”
“Why are product prices or cart quantities not updating for logged-in shoppers?”
In this comprehensive, battle-tested guide, you will learn the exact LiteSpeed Cache settings for Elementor and WooCommerce that achieve a 90+ PageSpeed Mobile score, sub-800ms Time to First Byte (TTFB), and flawless checkout functionality.
⚡ Need Your LiteSpeed & Elementor Site Optimized Fast?
Don’t risk breaking your live layout or checkout with trial and error. Let our WordPress & Elementor performance specialists configure server-level LiteSpeed caching, Redis object cache, and critical CSS with a guaranteed 90+ mobile score.
Why LiteSpeed Cache + Elementor Can Be Tricky
LiteSpeed Cache (LSCache) is not just a standard PHP caching plugin like WP Rocket or WP Super Cache. It communicates directly with the LiteSpeed Web Server at the server kernel level.
When paired with Elementor and WooCommerce, three major challenges arise:
- 1. Dynamic Elementor Widgets: Sliders (Swiper.js), sticky headers, popups, and motion effects require JavaScript to be loaded in an exact sequence. Combining or aggressively delaying JS without exclusions will break interactivity.
- 2. WooCommerce Private Data: Carts, checkouts, customer accounts, and mini-cart counters must NEVER be cached publicly; otherwise, customers will see other users’ cart items or empty carts.
- 3. Bloated CSS & DOM Depth: Elementor produces nested
<div>containers. If LSCache generates Unique CSS (UCSS) incorrectly, it causes layout shifts (CLS) and flashing unstyled text (FOUC).
Follow the step-by-step configuration below to eliminate these problems and unlock maximum speed.
Step 1: General & Cache Rules Settings
Navigate to LiteSpeed Cache → Cache → Cache [Tab]:
- Enable Cache:
ON(Activates LiteSpeed server-level page caching) - Cache Logged-in Users:
OFF(Never cache logged-in admins or customers; admins need to see live updates, and shoppers need custom cart state) - Cache Commenters:
OFF - Cache REST API:
ON(Crucial for Gutenberg, Elementor Editor API, and WooCommerce blocks) - Cache Login Page:
ON(Protects your server from brute-force login attacks) - Cache favicon.ico & PHP Resources:
ON - Cache Mobile:
ON(Essential for responsive design if you serve specific mobile layouts or AMP)
TTL (Time To Live) Settings
Under the TTL [Tab]:
- Default Public Cache TTL:
604800(7 days) - Default Private Cache TTL:
1800(30 minutes) - Default Front Page TTL:
604800(7 days) - Default Feed TTL:
604800 - Default REST TTL:
604800
Step 2: Page Optimization — CSS Settings (Zero Broken Layouts)
Go to LiteSpeed Cache → Page Optimization → CSS Settings:
- CSS Minify:
ON(Strips comments, white spaces, and line breaks) - CSS Combine:
OFF(With HTTP/2 and HTTP/3 multiplexing, combining large CSS files actually slows down modern browsers and creates render-blocking waterfalls) - CSS Combine External and Inline:
OFF - UCSS (Generate Unique CSS):
ON(Only if you have QUIC.cloud connected; otherwise keepOFF) - UCSS Inline:
OFF - Load CSS Asynchronously:
ON(Eliminates render-blocking CSS warnings in Google PageSpeed) - CCSS Per URL (Critical CSS):
ON - Inline CSS Async Lib:
ON - Font Display Optimization:
Swap(Fixes “Ensure text remains visible during webfont load”)
Important Elementor Exclusions: In Tuning → CSS Excludes, add the following classes to ensure icons and font weights never break:
elementor-icons
font-awesomeStep 3: Page Optimization — JS Settings (Preserving Elementor Interactivity)
Go to LiteSpeed Cache → Page Optimization → JS Settings:
- JS Minify:
ON - JS Combine:
OFF(Combining scripts frequently breaks Elementor’s event handlers and WooCommerce AJAX) - JS Combine External and Inline:
OFF - Load JS Deferred:
Deferred(Ensures HTML parses first before scripts execute) - Delay JS Execution:
ON(The biggest secret for scoring 95+ on Mobile!)
Crucial: Delay JS Exclusion List for Elementor & WooCommerce
Under Tuning → JS Deferred / Delayed Excludes, you MUST exclude essential libraries to prevent menus, sliders, and checkout from failing:
jquery.js
jquery.min.js
elementorFrontend
swiper
elementor-pro
wc-cart-fragments
woocommerce.min.jsStep 4: HTML Optimization & Browser Cache
Under LiteSpeed Cache → Page Optimization → HTML Settings:
- HTML Minify:
ON - DNS Prefetch: Add external fonts and CDN domains to pre-resolve server addresses:
//fonts.googleapis.com
//fonts.gstatic.com
//cdn.jsdelivr.net- HTML Lazy Load Selectors:
ON - Remove Query Strings:
OFF(Can break caching of versioned assets) - Load Google Fonts Asynchronously:
ON - Remove Google Fonts:
OFF - Remove WordPress Emoji:
ON(Saves an unnecessary HTTP request on every page)
Browser Cache
Navigate to LiteSpeed Cache → Cache → Browser [Tab]:
- Browser Cache:
ON - Browser Cache TTL:
2592000(30 days — instructs visitor browsers to store static CSS, JS, and images locally)
Step 5: WooCommerce ESI & Dynamic Cart Optimization
When running WooCommerce, static caching can cause shopping carts to show cached items or disappear. LiteSpeed provides ESI (Edge Side Includes) to solve this:
Go to LiteSpeed Cache → ESI:
- Enable ESI:
ON - Cache Admin Bar:
ON(Served as private ESI block) - Cache Comment Form:
ON
Under LiteSpeed Cache → Cache → Excludes, ensure the following WooCommerce system pages are strictly excluded from caching:
/cart/
/checkout/
/my-account/
/wc-api/(LiteSpeed automatically detects standard WooCommerce endpoints, but confirming these exclusions prevents costly checkout drop-offs.)
Step 6: Object Cache (Redis vs Memcached)
Page caching stores fully rendered HTML pages for guest visitors. But what about database queries for search, product filtering, and WooCommerce cart checks? That is what Object Cache handles.
Go to LiteSpeed Cache → Cache → Object [Tab]:
- Object Cache:
ON - Method:
Redis(Preferred over Memcached for WooCommerce due to persistent key storage) - Host:
localhost(or127.0.0.1) - Port:
6379 - Default Object Lifetime:
360seconds - Cache Admin:
OFF - Store Transients:
ON
Note: Verify that Redis is enabled in your hosting cPanel/hPanel PHP extensions before turning this switch on.
Frequently Asked Questions (FAQ)
1. Does LiteSpeed Cache replace the need for Elementor Pro features?
No. Elementor Pro provides design and layout capabilities, while LiteSpeed Cache optimizes asset delivery, server TTFB, and database queries. They work together as an integrated performance stack.
2. Why did my mobile menu stop opening after enabling LiteSpeed Cache?
This happens when JavaScript is delayed or deferred without excluding Elementor’s core frontend script. Add elementorFrontend and jquery.js to JS Deferred / Delayed Excludes in LiteSpeed settings.
3. Is QUIC.cloud required to use LiteSpeed Cache?
No. Core page caching, browser caching, and Redis object caching work 100% on your local LiteSpeed server without QUIC.cloud. However, QUIC.cloud is useful if you need cloud-based image WebP conversion, Critical CSS (CCSS) generation, and a global CDN.
4. How do I test if my LiteSpeed Cache is actually working?
Open an Incognito browser window, open Chrome DevTools (F12 → Network tab), and load your website. Click on your document URL and inspect the Response Headers:
X-LiteSpeed-Cache: hitmeans the page was served directly from LiteSpeed server memory in under 200ms!X-LiteSpeed-Cache: missindicates the first visit before the page was cached.
Ready to Turn Your Slow Elementor Site into a Revenue Machine?
A 1-second delay in page load time costs eCommerce stores up to 7% in lost conversions. You don’t need dozens of extra optimization plugins that bloat your WordPress database. With properly tuned LiteSpeed Cache settings and clean Elementor design, your website can fly. Let our dedicated Elementor and LiteSpeed performance specialists optimize your website for peak speed, 90+ mobile scores, and maximum conversions.