๐ŸŸข Network Status| First month from $2.00 โ€” fully managed | Contact Support
Skip to content
Need help? Real engineers available 24/7. Average response under 15 minutes. Open a support ticket โ†’

LiteSpeed Web Server โ€” Overview & Caching โ€‹

LiteSpeed is the web server installed on all RemarkableCloud Cloud Cubes in place of Apache. It is a drop-in replacement โ€” reads the same .htaccess files, supports the same rewrite rules, works with cPanel and DirectAdmin without changes โ€” but handles traffic far more efficiently and ships with a built-in page cache that makes WordPress dramatically faster.

LiteSpeed vs Apache โ€‹

ApacheLiteSpeed
ArchitectureProcess-based (one process per connection)Event-driven (thousands of connections, few threads)
Memory under loadScales linearly with trafficStays near-flat
.htaccess supportNativeFull compatibility
Built-in cacheNoneLSCache โ€” full-page, object, ESI
HTTP/3 (QUIC)Via moduleNative, enabled by default
PHP executionmod_php or PHP-FPMLSAPI โ€” 40โ€“50% faster than FPM

LiteSpeed is pre-installed and active on your Cloud Cube. No configuration needed to get the performance benefits from day one.

How LSCache works โ€‹

  1. A visitor requests a page
  2. LiteSpeed checks for a cached version
  3. Cache hit โ€” serves cached HTML directly, PHP never runs, database never queried
  4. Cache miss โ€” PHP renders the page, LiteSpeed caches the output, serves it
  5. Every subsequent visitor for that page hits the cache

A cached WordPress page goes from executing 50โ€“200 database queries down to serving a static HTML file.

LSCache for WordPress โ€‹

Installing the plugin โ€‹

  1. Go to Plugins โ†’ Add New in WordPress admin.
  2. Search for LiteSpeed Cache and install the plugin by LiteSpeed Technologies.
  3. Activate it and go to LiteSpeed Cache โ†’ Dashboard.
  4. Verify the green "LSCache is active" status. If inactive, go to LiteSpeed Cache โ†’ Toolbox โ†’ Htaccess Operations โ†’ Save Htaccess.

Cache tab:

SettingValue
Enable CacheOn
Cache Logged-in UsersOff
Cache REST APIOn
Cache Login PageOff

TTL tab:

SettingValue
Default Public Cache TTL604800 (7 days)
Default Front Page TTL1800

Purge tab:

  • Purge All on Upgrade โ†’ On
  • Auto Purge Rules โ†’ check All

Excludes tab: Add any URLs that must never be cached โ€” checkout pages, cart, account pages, admin-only URLs.

LSCache for WooCommerce โ€‹

WooCommerce requires extra care because cart contents are user-specific. LSCache handles this automatically when configured correctly.

Go to LiteSpeed Cache โ†’ Cache โ†’ Excludes โ†’ Do Not Cache Cookies and confirm these are present (the plugin adds them automatically):

woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session_*

Exclude WooCommerce pages from cache โ€‹

Add to Do Not Cache URIs:

/cart/
/checkout/
/my-account/
/wc-api/
/?wc-ajax=

WooCommerce-specific settings โ€‹

SettingValue
Cache Logged-in UsersOff (essential)
Object CacheOn
Cache WooCommerceOn
Cache CartOff

Testing the cache โ€‹

Check response headers on a product page in browser dev tools โ†’ Network tab:

X-LiteSpeed-Cache: hit     โ† served from cache
X-LiteSpeed-Cache: miss    โ† PHP ran (expected for cart users)
โœ“
Test in incognito
Admin sessions always show cache misses. Open an incognito window with no cookies to test what anonymous visitors see โ€” those should be cache hits.

Image optimization โ€‹

Go to LiteSpeed Cache โ†’ Image Optimization and enable:

  • WebP Replacement โ€” serves WebP to supported browsers, JPEG/PNG to others automatically
  • Lazy Load โ€” below-fold images load only when scrolled into view
  • Responsive Images โ€” correctly sized image per device

Image optimization alone reduces load time by 30โ€“50% for image-heavy sites.

Troubleshooting โ€‹

Pages not caching after install Check .htaccess in your WordPress root for # BEGIN LiteSpeed. If missing: LiteSpeed Cache โ†’ Toolbox โ†’ Htaccess Operations โ†’ Save Htaccess.

Cache not clearing after publishing Verify Auto Purge Rules in Cache โ†’ Purge includes all content types you publish.

WooCommerce showing wrong cart contents A cart cookie is missing from the exclude list. Check Do Not Cache Cookies includes all woocommerce_* patterns.

Debugging cache misses Enable LiteSpeed Cache โ†’ Debug โ†’ Debug Log temporarily to see exactly why requests are not hitting cache.

๐Ÿš€
Dedicated CPU ยท Cloud Cubes

WordPress running slow? Upgrade to Dedicated CPU

Isolated CPU cores, no noisy neighbors. Perfect for WooCommerce and high-traffic sites.

Next steps โ€‹

Managed hosting that actually manages.