LiteSpeed Cache for WordPress (LSCWP) stands out as an all-encompassing site acceleration plugin designed to dramatically improve your website’s performance. It uniquely combines an exclusive server-level cache with an extensive collection of optimization features, making it a powerful solution for any WordPress site.
LSCWP offers broad compatibility, supporting WordPress Multisite environments and integrating seamlessly with many of the most popular plugins, including essential tools like WooCommerce, bbPress, and Yoast SEO. Furthermore, LiteSpeed Cache for WordPress is fully compatible with ClassicPress installations, ensuring a wide range of users can benefit from its capabilities.
Requirements for LiteSpeed Cache Features
To fully leverage the capabilities of LiteSpeed Cache, it's important to understand the specific requirements for its various features.
General Features are universally accessible and can be utilized by anyone, regardless of their web server environment. This includes common servers such as LiteSpeed, Apache, NGINX, and others.
Conversely, LiteSpeed Exclusive Features demand a specific server environment to function. These features require one of the following: OpenLiteSpeed, any commercial LiteSpeed product, hosting specifically powered by LiteSpeed, or integration with QUIC.cloud CDN. For a detailed explanation, you can refer to the LiteSpeed documentation on why cache features require a LiteSpeed server.
Comprehensive Plugin Features
LiteSpeed Cache for WordPress offers a robust set of features categorized into general optimizations and LiteSpeed exclusive functionalities.
General Optimization Features
These features are designed to enhance site speed and efficiency on any web server:
- Free QUIC.cloud CDN Cache integration
- Support for various Object Caches, including Memcached, LSMCD, and Redis+
- Advanced Image Optimization with both lossless and lossy compression options
- Minification of CSS, JavaScript, and HTML for reduced file sizes
- Minification of both inline and external CSS/JS files
- Combination of multiple CSS and JavaScript files into fewer requests
- Automatic generation of Critical CSS for faster initial page rendering
- Lazy-loading for images and iframes to improve perceived load times
- Responsive Image Placeholders for a smoother user experience
- Support for Multiple CDN services+
- Asynchronous loading of CSS files
- Deferring or delaying JavaScript loading to prioritize critical content
- Browser Cache Support+
- Robust Database Cleaner and Optimizer to maintain a lean database
- Optimization for Google PageSpeed scores, including Core Web Vitals
- OPcode Cache Support+
- HTTP/2 Push for CSS/JS on compatible web servers
- DNS Prefetching for external resources
- Cloudflare API integration for enhanced control
- Support for both Single Site and WordPress Multisite (Network) installations
- Easy Import/Export functionality for plugin settings
- An attractive and user-friendly interface
- Comprehensive AVIF/WebP image format support for modern browsers
- Heartbeat control to manage WordPress API requests
+ Please note: This service is not directly provided by the LSCache plugin, nor is it guaranteed to be installed by your hosting provider. However, the plugin is fully compatible with these services if they are implemented on your website.
LiteSpeed Exclusive Features
These advanced features are available only when running on a LiteSpeed server environment, offering unparalleled performance benefits:
- Automatic page caching to significantly boost overall site performance
- Intelligent, automatic purging of related pages based on specific events
- Private cache options for logged-in users
- Efficient caching of WordPress REST API calls
- Separate caching capabilities for desktop and mobile views
- Ability to schedule cache purges for specified URLs
- Dedicated support for WooCommerce and bbPress, ensuring optimal performance for e-commerce and forum sites
- Integration with WordPress CLI commands for command-line management
- A robust API system for seamless cache integration with custom solutions
- Flexible exclusion from cache based on URI, Category, Tag, Cookie, or User Agent
- Smart preload crawler with comprehensive support for SEO-friendly sitemaps
- Multiple crawlers for diverse cache variations
- Full HTTP/2 support
- Advanced HTTP/3 & QUIC support for next-generation performance
- ESI (Edge Side Includes) support for dynamic content handling*
- Widgets and Shortcodes as ESI blocks* (requires the Classic Widgets plugin for WordPress 5.8+)
* Please be aware that some features, such as ESI (Edge Side Includes) and Widgets/Shortcodes as ESI blocks, may not be available in OpenLiteSpeed environments.
LSCWP Resources and Community
To assist users and foster a vibrant community, LiteSpeed Cache provides a variety of helpful resources:
- Join our Slack community to connect directly with other LiteSpeed users and share insights.
- Ask a question on our dedicated support forum for assistance with specific issues.
- View detailed documentation to explore comprehensive guides and technical information.
- Read about LSCWP and WordPress on our blog for the latest news, tips, and best practices.
- Help translate LSCWP and contribute to making the plugin accessible to a wider global audience.
- Contribute to the LSCWP GitHub repository by submitting code, reporting bugs, or suggesting enhancements.
Third-Party Compatibility
LiteSpeed Cache is designed with extensive compatibility in mind. The vast majority of WordPress plugins and themes work seamlessly with LSCache. For specific cases where direct integration might be challenging, our robust API is available. This API allows developers to customize smart purging, define custom cache rules, create cache variations, and make WordPress nonces cacheable, among other advanced functionalities.
Privacy Considerations
Ensuring user privacy is a key aspect of LiteSpeed Cache. The plugin includes suggested text that you can easily add to your site’s Privacy Policy through the Guide in the WordPress Privacy settings, helping you maintain transparency with your users.
For your information: LiteSpeed Cache for WordPress may store a duplicate copy of every web page displayed on your site. These pages are stored locally on the system where the LiteSpeed server software is installed and are not transferred to or accessed by LiteSpeed employees in any manner, except when necessary for routine technical support if explicitly requested by you. All cache files are temporary and can be easily purged before their natural expiration, if needed, via a "Purge All" command. It is the responsibility of individual site administrators to establish their own cache expiration rules.
In addition to caching, our WordPress plugin integrates with online features provided by QUIC.cloud for Image Optimization and Page Optimization services. When one of these optimizations is requested, data is transmitted to a remote QUIC.cloud server, processed, and then transmitted back for use on your site. QUIC.cloud retains copies of that data for up to 7 days before permanent deletion. Similarly, the WordPress plugin includes a Reporting feature that allows a site owner to transmit an environment report to LiteSpeed to facilitate better technical support. None of these features collect any visitor data; only server and site-specific data are involved.
If enabled, QUIC.cloud CDN utilizes LSCache technology to access your site and serve your content from remote global nodes. Your data is not accessed by QUIC.cloud employees in any way, except as necessary for providing maintenance or technical support.
For a complete overview of our Privacy and GDPR statement, please refer to the QUIC.cloud Privacy Policy.
Installation and Configuration
For a visual guide and more detailed installation instructions, please refer to our detailed documentation.
For Optimization Without a LiteSpeed Web Server
If your website is not hosted on a LiteSpeed web server, you can still benefit from LSCWP’s extensive optimization features:
- Install the LiteSpeed Cache for WordPress plugin and activate it through your WordPress dashboard.
- From the WordPress Dashboard, navigate to LiteSpeed Cache > Page Optimization. Here, you can enable the various optimization features available across different tabs.
For Caching and Optimization With a LiteSpeed Web Server
To unlock both caching and optimization features for maximum performance, you will need a LiteSpeed-compatible server environment:
- Ensure you have one of the following: LiteSpeed Web Server Enterprise with the LSCache Module, LiteSpeed Web ADC, or OpenLiteSpeed with its cache module (which is free). Alternatively, you can sign up for QUIC.cloud CDN.
- Install the LiteSpeed Cache for WordPress plugin and activate it.
- From your WordPress Dashboard, navigate to LiteSpeed Cache > Cache. Confirm that the option Enable LiteSpeed Cache is set to
ON. - Proceed to enable any desired caching and optimization features available within the various tabs.
Important Notes for LiteSpeed Web Server Enterprise Users
- Verify that your LiteSpeed Enterprise license includes the LSCache module. A free 15-day trial license with a 2-CPU LSCache module is available.
- The server must be properly configured with caching enabled. If you are the server administrator, click here for instructions. Otherwise, please request that your server administrator configure the cache root for the server.
Important Notes for OpenLiteSpeed Users
- This integration leverages OpenLiteSpeed’s built-in cache module.
- For a fresh OpenLiteSpeed installation, the simplest integration method is to use ols1clk. If you are integrating with an existing WordPress installation, use the
--wordpresspathparameter. - If both OpenLiteSpeed and WordPress are already installed, please follow the instructions provided in How To Set Up LSCache For WordPress.
The LiteSpeed Cache for WordPress plugin establishes direct communication with your LiteSpeed Web Server and its integrated page cache (LSCache). This synergy delivers superior performance to your WordPress site by allowing the plugin's cache features to instruct the server on which pages are cacheable and for what duration, or to precisely invalidate specific cached pages using tags.
As a server-level cache, LSCache operates with remarkable speed, surpassing the performance of traditional PHP-level caches. For a comprehensive comparison with other PHP-based caches, you can review the LiteSpeed WordPress benchmarks.
A page cache empowers the server to completely bypass PHP processing and database queries for static content. LSCache, owing to its deep integration with the server, possesses an advanced ability to retain critical information about cache entries that other plugins cannot. It can analyze dependencies and utilize sophisticated tagging mechanisms for intelligent cache purging. Furthermore, it can employ vary cookies to serve multiple versions of cached content, catering to distinctions such as mobile versus desktop views, geographic locations, and different currencies. To learn more about these advanced caching concepts, explore our Caching 101 blog series.
If these technical details seem complex, there's no need to worry. LSCWP is designed to function effectively right out of the box with default settings that are optimized for most websites. For a guided introduction, consult the Beginner’s Guide.
Don’t have a LiteSpeed server? You can still experience the remarkable power of LiteSpeed caching through our QUIC.cloud CDN service. This service enables websites on any server—including NGINX and Apache—to benefit from LiteSpeed’s advanced caching capabilities! Click here to learn more or to try QUIC.cloud.
Beyond its robust caching, LSCWP incorporates additional powerful optimization features. These include Database Optimization, Minification and Combination of CSS and JavaScript files, HTTP/2 Push, comprehensive CDN Support, Browser Cache management, Object Cache integration, Lazy Load for Images, and advanced Image Optimization. Importantly, these specific features do not require the use of a LiteSpeed web server, making them accessible to a wider audience.
Yes, LSCWP will consistently remain free and open source. However, it is important to note that a LiteSpeed server is essential for utilizing the plugin's core cache features, and some LiteSpeed server editions may involve associated fees. Additionally, certain premium online services provided through QUIC.cloud (such as the CDN Service, advanced Image Optimization, Critical CSS generation, and Low-Quality Image Placeholders) may require payment beyond specific usage thresholds. You can gain further insight into the costs of these services and identify which service levels are free by visiting your QUIC.cloud dashboard.
To access and utilize the LiteSpeed Exclusive features of this plugin, a LiteSpeed solution is a mandatory requirement. Any of the following options will provide the necessary environment:
- LiteSpeed Web Server Enterprise with LSCache Module (version 5.0.10 or later)
- OpenLiteSpeed (version 1.4.17 or later)
- LiteSpeed WebADC (version 2.0 or later)
- QUIC.cloud CDN
Conversely, the General Features of the plugin are designed to function with any web server environment, and a LiteSpeed server is not a prerequisite for their use.
Cache entries are managed and stored at the LiteSpeed server level. The most straightforward approach for this is to utilize LiteSpeed WebADC, as cache entries will be stored directly at that level. If an alternative load balancer is in use, cache entries will only be stored at the backend nodes, not at the load balancer itself. In such scenarios, cache purges will not be synchronized across the nodes, a configuration that is generally not recommended. Should a customized solution be necessary, please contact LiteSpeed Technologies at [email protected]. Please note: The rewrite rules generated by this plugin must be meticulously copied to the Load Balancer for proper functionality.
The actual cached pages are stored and managed directly by LiteSpeed Servers, ensuring optimal performance and efficiency. Importantly, nothing is stored within the WordPress file structure itself.
Yes, LiteSpeed Cache can operate effectively with OpenLiteSpeed, though it's important to be aware that certain features may not be fully supported. For detailed information, please refer to the Plugin Features section above. Any configuration changes that necessitate modifying the .htaccess file will require a server restart to take effect.
In brief, yes, LSCWP is highly compatible with WooCommerce. However, for some WooCommerce themes, you might encounter situations where the shopping cart does not update correctly. For a quick tutorial on how to detect and resolve this potential conflict, please visit our blog.
Images are not optimized automatically by default. To enable automatic image optimization, you must set LiteSpeed Cache > Image Optimization > Image Optimization Settings > Auto Request Cron to ON. Alternatively, you always have the option to optimize your images manually. Learn more about image optimization.
Our comprehensive API includes a specialized function that leverages ESI (Edge Side Includes) to "punch a hole" in a cached page specifically for a nonce. This innovative approach allows the nonce to be cached independently, irrespective of the Time-To-Live (TTL) of the page it resides on. For more in-depth information, please consult the API documentation. We also actively encourage contributions to our predefined list of known third-party plugin nonces, which users can optionally include via the plugin’s ESI settings.
The crawler feature is disabled by default and requires initial activation by the server administrator. Once the crawler is enabled at the server level, navigate to LiteSpeed Cache > Crawler > General Settings within your WordPress dashboard and set the Crawler option to ON. For a more detailed guide on crawler setup and configuration, please refer to the Crawler documentation.
Extensive Third-Party Plugin Compatibility
LiteSpeed Cache boasts broad compatibility with a wide array of popular WordPress plugins, ensuring seamless integration and optimal performance for various site functionalities:
- WPML (WordPress Multilingual Plugin)
- DoLogin Security
- bbPress (Forum Software)
- WooCommerce (E-commerce Solution)
- Contact Form 7
- All in One SEO
- Google XML Sitemaps
- Yoast SEO
- Wordfence Security
- NextGen Gallery
- ShortPixel (Image Optimizer)
- Aelia CurrencySwitcher
- Fast Velocity Minify – Special thanks to Raul Peixoto!
- Autoptimize
- Better WP Minify
- WP Touch
- Theme My Login
- WPLister
- WP-PostRatings
- Avada 5.1 RC1+
- Elegant Themes Divi 3.0.67+
- Elegant Divi Builder
- Caldera Forms 1.5.6.2+
- Login With Ajax
- Ninja Forms
- Post Types Order 1.9.3.6+
- BoomBox — Viral Magazine WordPress Theme
- FacetWP (requires LSWS 5.3.6+)
- Beaver Builder
- WpDiscuz
- WP-Stateless
- Elementor
- WS Form
- WP Statistics
The extensive list above highlights just some of the integrations; the vast majority of plugins and themes maintain compatibility with LiteSpeed Cache. For the most current and detailed compatibility information, please consult our official documentation.
You can report any security vulnerabilities through the Patchstack Vulnerability Disclosure Program. The expert team at Patchstack will assist in validating, triaging, and managing all reported security issues. To report a security vulnerability, please visit their dedicated page.
