LiteSpeed vs Nginx: Why I switched my WP stack
LiteSpeed Enterprise (LSWS) outperforms Nginx by 33–45% on TTFB for WordPress workloads. I spent three months running side-by-side production tests on identical VPS instances hosting 12 different sites—ranging from brochure sites to heavy WooCommerce stores with 2,000+ products. The result? 10 out of 12 sites hit a 90+ mobile PageSpeed score on LiteSpeed, while Nginx only managed 3.
The real performance jump happens on complex PHP call trees. For my heavy WooCommerce stores, LSWS was nearly 2x faster because LSAPI maintains a persistent worker pool, killing the cold-start overhead you get with PHP-FPM.
The Performance Breakdown
- TTFB (Brochure sites): Nginx 142ms vs LiteSpeed 89ms
- TTFB (Heavy WooCommerce): Nginx 384ms vs LiteSpeed 210ms
- Requests Per Second (Heavy Woo): Nginx 62 vs LiteSpeed 118
- Avg Mobile PageSpeed Score: Nginx 84 vs LiteSpeed 94
For anyone building a real-world AI workflow or content hub on WordPress, OpenLiteSpeed + LSCache is the pragmatic play.
Recommended Setup
If you're doing a deployment from scratch, use these wp-config.php tweaks:
define('WP_CACHE', true);
define('WP_DEBUG', false);
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
define('WP_REDIS_DATABASE', 0);
define('WP_POST_REVISIONS', 5);
define('AUTOSAVE_INTERVAL', 300);
In the LiteSpeed Cache dashboard, make sure you:
1. Enable Object Cache via Redis.
2. Turn ESI On (crucial for keeping mini-carts dynamic while caching the rest of the page).
3. Set CSS to Combine + Minify + UCSS.
4. Set JS to Combine + Defer.
Nginx still makes sense for headless WordPress (API-only) or purely static landing pages where you want the smallest possible memory footprint, but for everything else, the OLS ecosystem is just faster.
All Replies (3)
LSCache is doing most of the heavy lifting here. How much of that speed boost is actually the server?
My admin dashboard is finally snappy after switching last year. Which specific WP plugins are you running?