LiteSpeed Cache


LiteSpeed Cache for WordPress (LSCWP) communicates with your LiteSpeed Web Server and its built-in page cache (LSCache) to deliver superior performance to your WordPress site.

LSCache is a server-level cache, so it’s faster than PHP-level caches. Benchmarks: Comparison with other PHP-based caches.

A page cache allows the server to bypass PHP and database queries altogether. LSCache, in particular, because of its close relationship with the server, can remember things about the cache entries that other plugins cannot, and it can analyze dependencies. It can utilize tags to manage the smart purging of the cache, and it can use vary cookies to serve multiple versions of cached content based on things like mobile vs. desktop, geographic location, and currencies.

If all of that sounds complicated, no need to worry. LSCWP works right out of the box with default settings that are appropriate for most sites. And if you do need help, we’re just a forum post away.

LSCWP supports WordPress Multisite and is compatible with most popular plugins, including WooCommerce, bbPress, and Yoast SEO. Scroll down for a complete list.

LSCWP includes additional optimization features, such as Database Optimization, Minification and Combination of CSS and JS files, HTTP/2 push CDN support, Browser Cache, Object Cache, Lazyload images and image optimization!

Want to know more about caching in general, and LiteSpeed caching in particular? See our Caching 101 blog series.

Plugin Features

LiteSpeed Web Server Enterprise, LiteSpeed Web ADC and OpenLiteSpeed:

  • Image optimization
  • WebP image format support
  • PageSpeed score optimization
  • Load CSS/JS Asynchronously
  • Lazyload images/iframes
  • Content Delivery Network support
  • Minify CSS, JavaScript, and HTML
  • Combine CSS and JavaScript
  • HTTP/2 Push for CSS and JS
  • Database Cleaner and Optimizer
  • Object Cache (Memcached/LSMCD/Redis)
  • OPcode Cache
  • Browser Cache
  • DNS Prefetch
  • Cloudflare API
  • Automatic page caching to greatly improve site performance
  • Automatic purge of related pages based on certain events
  • Smart preload crawler with support for SEO-friendly sitemap
  • Private cache for logged-in users
  • Caching of WordPress REST API calls
  • Separate caching of desktop and mobile views
  • Ability to schedule purge for specified URLs at specified time of day
  • Support for HTTP/2 & HTTPS out-of-box
  • Single Site and Multi Site ( Network ) support
  • Support for WooCommerce and bbPress
  • WordPress CLI
  • Simple API system that enables other plugins to easily integrate with cache and operate cache functionalities.
  • No-Cache configuration by URI, Categories, Tags, Cookies, and User Agents
  • Import / Export settings
  • Basic / Advanced setting view
  • Attractive, easy-to-understand interface

LiteSpeed Web Server Enterprise Edition and LiteSpeed Web ADC Only:

  • Support for clustered environments via LiteSpeed Web ADC
  • Supports QUIC right out of the box
  • Supports ESI cache

Please consider helping translate LiteSpeed Cache plugin at our GlotPress project. Growing the LiteSpeed Cache plugin community means better software for everyone!

Third Party Compatibility

The vast majority of plugins and themes are compatible with LSCache. Our API is available for those that are not.


If you have a plugin or theme that you would like to make compatible with LSCWP, please see the following resources:

If you have any API requirements, please inform us anytime in WP Forum or GitHub Issues. We will add them ASAP.

Known Compatible Plugins and Themes


  • Plugin Benchmarks
  • Admin Settings - Cache
  • Admin Settings - Purge
  • Admin Settings - Excludes
  • Admin Settings - Optimize
  • Admin Settings - Tuning
  • Admin Settings - Media
  • Admin Settings - CDN
  • Admin Settings - ESI
  • Admin Settings - Crawler
  • Admin Settings - Thirdparty WooCommerce
  • Admin Management - Purge
  • Admin Management - DB Optimizer
  • Admin Crawler Status Page
  • Cache Miss Example
  • Cache Hit Example
  • Frontend Adminbar Shortcut


  1. Install LiteSpeed Web Server Enterprise with LSCache Module, LiteSpeed Web ADC, or OpenLiteSpeed with cache module [Free].
  2. Install the LiteSpeed Cache for WordPress plugin and activate it.
  3. From the WordPress Dashboard, navigate to LiteSpeed Cache -> Settings, make sure the option Enable LiteSpeed Cache is set to Enable.
  4. Enjoy!

Notes for LiteSpeed Web Server Enterprise

  • Make sure that your license includes the LSCache module. A 2-CPU trial license with LSCache module is available for free for 15 days.
  • The server must be configured to have caching enabled. If you are the server admin, click here for instructions. Otherwise, please request that the server admin configure the cache root for the server.

Notes for OpenLiteSpeed

  • This integration utilizes OpenLiteSpeed’s cache module.
  • If it is a fresh OLS installation, the easiest way to integrate is to use ols1clk. If using an existing WordPress installation, use the --wordpresspath parameter.
  • If OLS and WordPress are both already installed, please follow the instructions in How To Set Up LSCache For WordPress.


Installation Instructions
  1. Install LiteSpeed Web Server Enterprise with LSCache Module, LiteSpeed Web ADC, or OpenLiteSpeed with cache module [Free].
  2. Install the LiteSpeed Cache for WordPress plugin and activate it.
  3. From the WordPress Dashboard, navigate to LiteSpeed Cache -> Settings, make sure the option Enable LiteSpeed Cache is set to Enable.
  4. Enjoy!

Notes for LiteSpeed Web Server Enterprise

  • Make sure that your license includes the LSCache module. A 2-CPU trial license with LSCache module is available for free for 15 days.
  • The server must be configured to have caching enabled. If you are the server admin, click here for instructions. Otherwise, please request that the server admin configure the cache root for the server.

Notes for OpenLiteSpeed

  • This integration utilizes OpenLiteSpeed’s cache module.
  • If it is a fresh OLS installation, the easiest way to integrate is to use ols1clk. If using an existing WordPress installation, use the --wordpresspath parameter.
  • If OLS and WordPress are both already installed, please follow the instructions in How To Set Up LSCache For WordPress.
Is the LiteSpeed Cache Plugin for WordPress free?

Yes, LSCWP will always be free and open source. That said, a LiteSpeed server is required, and there are fees associated with some LiteSpeed server editions (see question 2).

What server software is required for this plugin?

A LiteSpeed server is required in order to use this plugin.

  1. LiteSpeed Web Server Enterprise with LSCache Module (v5.0.10+)

  2. OpenLiteSpeed (v1.4.17+) – Free and open source!

  3. LiteSpeed WebADC (v2.0+)

Any single server or cluster including a LiteSpeed server will work.

Does this plugin work in a clustered environment?

The cache entries are stored at the LiteSpeed server level. The simplest solution is to use LiteSpeed WebADC, as the cache entries will be stored at that level.

If using another load balancer, the cache entries will only be stored at the backend nodes, not at the load balancer.

The purges will also not be synchronized across the nodes, so this is not recommended.

If a customized solution is required, please contact LiteSpeed Technologies at

NOTICE: The rewrite rules created by this plugin must be copied to the Load Balancer.

Where are the cached files stored?

The actual cached pages are stored and managed by LiteSpeed Servers.

Nothing is stored within the WordPress file structure.

Does LiteSpeed Cache for WordPress work with OpenLiteSpeed?

Yes it can work well with OpenLiteSpeed, although some features may not be supported. See Plugin Features above for details. Any setting changes that require modifying the .htaccess file will require a server restart.

Is WooCommerce supported?

In short, yes. However, for some woocommerce themes, the cart may not be updated correctly. Please visit our blog for a quick tutorial on how to detect this problem and fix it if necessary.

My plugin has some pages that are not cacheable. How do I instruct the LiteSpeed Cache Plugin to not cache the page?

As of version 1.0.10, you may simply add define('LSCACHE_NO_CACHE', true); sometime before the shutdown hook, and it should be recognized by the cache.

Alternatively, you may use the function xxxLiteSpeed_Cache_Tags::set_noncacheable(); for earlier versions (1.0.7+).

If using the function, make sure to check that the class exists prior to using the function.

Please see our API wiki for more information and to learn what else you can do to integrate your plugin with LSCWP.

Are my images optimized?

Yes we do. LSCWP v1.6+ can optimize your images.

How do I get WP-PostViews to display an updating view count?
  1. Use: <div id="postviews_lscwp"></div>

    to replace

    <?php if(function_exists('the_views')) { the_views(); } ?>
    • NOTE: The id can be changed, but the div id and the ajax function must match.
  2. Replace the ajax query in wp-content/plugins/wp-postviews/postviews-cache.js with

            success:function(data) {
                if(data) {
                    jQuery('#postviews_lscwp').html(data+' views');
  3. Purge the cache to use the updated pages.

How do I enable the crawler?

The crawler is disabled by default, and must be enabled by the server admin first.

Once the crawler is enabled on the server side, navigate to LiteSpeed Cache > Crawler and set Activation to Enable.

For more detailed information about crawler setup, please see our blog post.

Why are some settings tabs missing?

LSCWP has a “Basic View” and an “Advanced View.” While in Basic View, you will see the following settings tabs: General, Cache, Purge, Excludes, and (optionally) WooCommerce. These are all that is necessary to manage the LiteSpeed Cache.

Click on the Advanced View link at the top of the page, and several more tabs will be revealed: Optimize, Tuning, Media, CDN, ESI, Advanced, Debug, Crawler. These tabs contain more expert-level cache options as well as non-cache-related optimization functionality.


Super Awesome

I installed this a few weeks ago to try it out. Awesome! Just yesterday I discovered the image optimization and CloudFlare features. Holy sh*t – Super Awesome! Saves me three plugins – cache, CloudFlare, image opt – and does a superior job in each case. Thank you Thank you Thank you for making this tremendous plugin available for free. You are the best. Worthy of a million stars but I can only give five. Favorited.

For our server clients, it’s the go to

We’ve been using WP Rocket for a few years now, which is hands down the best cache plugin available. But if you’re on, or running a LiteSpeed server, then LiteSpeed Cache should your go to.

Fast, powerful and designed by the LiteSpeed folk to work with their own software. We’ve found it to be every bit as powerful as WP Rocket.

Fails to purge – Revisited

I originally left a one star review for this plugin due to not being able to purge the cache and see site updates no matter what I tried.

Having tracked down my issue it turns out that whilst my problem was indeed caching, it was not LiteSpeed, it turned out to be Cloudflare.

I have spent some time testing the plugin today in order to give a more accurate review.

I have found the plugin to be highly configurable but easy to use with it working well out of the box. Exclusions are easy to add and the interface is a pleasure to work with.

I quote my original review text below in order to provide context to the high standard of support I received here from LiteSpeed customer care and a LiteSpeed developer, both of whom were quick to respond and were dedicated to resolving the issue.

I would not hesitate to recommend this plugin for those looking for a way to interact with their LiteSpeed cache from within the WordPress back end. I can give the plugin a 5 star review now having thoroughly tested it today.

Thanks so much for your patience and time @lclarke and @hailite, greatly appreciated. Apologies for the impulsive 8am rant review.

Below is the initial review:

“Yet another aggressive cache that does nothing more than waste developer’s time while wrestling with it to see site updates and get back to the work I’m actually being paid for.

Genuinely, I would love to see plugin authors forced to pay developer fees for this.”

Works well, good documentation, and fantastic support responses

If your host is using Litespeed, then it would be ridiculous not to choose this plugin for all your caching and optimization needs. First, the plugin works great and it’s easy to verify that with the various page speed tools. What impresses me most though is the excellent support responses, both for caching newbies and experts who just need the setup details. The backend explains all the options well and there is more to read on the wiki and great blog articles if that’s not enough. And, to their credit, the developers respond quickly to bug reports and feature enhancements on every channel. I’ve submitted several requests so far and the majority of them are already implemented (in a matter of just a couple weeks). This is how plugins should be.

Read all 150 reviews

Contributors & Developers

“LiteSpeed Cache” is open source software. The following people have contributed to this plugin.


“LiteSpeed Cache” has been translated into 10 locales. Thank you to the translators for their contributions.

Translate “LiteSpeed Cache” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog – February 20 2018

  • [Hotfix] Removed empty crawler when no role simulation is set.

1.9.1 – February 20 2018

  • [NEW FEATURE] Role Simulation crawler.
  • [NEW FEATURE] WebP multiple crawler.
  • [NEW FEATURE] HTTP/2 support for crawler.
  • [BUGFIX] Fixed a js bug with the auto complete mobile user agents field when cache mobile is turned on.
  • [BUGFIX] Fixed a constant undefined warning after activation.
  • [GUI] Sitemap generation settings are no longer hidden when using a custom sitemap.

1.9 – February 12 2018

  • [NEW FEATURE] Inline CSS/JS Minify.
  • [IMPROVEMENT] Removed Composer vendor to thin the plugin folder.
  • [UPDATE] Tweaked H2 to H1 in Admin headings for accessibility. (@steverep)
  • [GUI] Added Mobile User Agents to basic view.
  • [GUI] Moved Object Cache & Browser Cache from Cache tab to Advanced tab.
  • [GUI] Moved LSCache Purge All from Adminbar to dropdown menu.

1.8.3 – February 2 2018

  • [NEW FEATURE] Crawler server variable limitation support.
  • [IMPROVEMENT] Added Store Transients option to fix transients missing issue when Cache Wp-Admin setting is OFF.
  • [IMPROVEMENT] Tweaked ARIA support. (@steverep)
  • [IMPROVEMENT] Used strpos instead of strncmp for performance. (@Zach E)
  • [BUGFIX] Transient cache can now be removed when the Cache Wp-Admin setting is ON in Object Cache.
  • [BUGFIX] Network sites can now save Advanced settings.
  • [BUGFIX] Media list now shows in network sites.
  • [BUGFIX] Show Crawler Status button is working again.
  • [UPDATE] Fixed a couple of potential PHP notices in the Network cache tab and when no vary group is set.
  • [GUI] Added Learn More link to all setting pages.

1.8.2 – January 29 2018

  • [NEW FEATURE] Instant Click in the Advanced tab.
  • [NEW FEATURE] Import/Export settings.
  • [NEW FEATURE] Opcode Cache support.
  • [NEW FEATURE] Basic/Advanced setting view.
  • [IMPROVEMENT] Added ARIA support in widget settings.
  • [BUGFIX] Multiple WordPress instances with same Object Cache address will no longer see shared data.
  • [BUGFIX] WebP Replacement may now be set at the Network level.
  • [BUGFIX] Object Cache file can now be removed at the Network level uninstall.

1.8.1 – January 22 2018

  • [NEW FEATURE] Object Cache now supports Redis.
  • [IMPROVEMENT] Memcached Object Cache now supports authorization.
  • [IMPROVEMENT] A 500 error will no longer be encountered when turning on Object Cache without the proper PHP extension installed.
  • [BUGFIX] Object Cache settings can now be saved at the Network level.
  • [BUGFIX] Mu-plugin now supports Network setting.
  • [BUGFIX] Fixed admin bar showing inaccurate Edit Page link.
  • [UPDATE] Removed warning information when no Memcached server is available.

1.8 – January 17 2018

  • [NEW FEATURE] Object Cache.
  • [REFACTOR] Refactored Log class.
  • [REFACTOR] Refactored LSCWP basic const initialization.
  • [BUGFIX] Fixed Cloudflare domain search breaking when saving more than 50 domains under a single account.
  • [UPDATE] Log filter settings are now their own item in the wp-option table.

1.7.2 – January 5 2018

  • [NEW FEATURE] Cloudflare API support.
  • [IMPROVEMENT] IAPI key can now be reset to avoid issues when domain is changed.
  • [BUGFIX] Fixed JS optimizer breaking certain plugins JS.
  • [UPDATE] Added cdn settings to environment report.
  • [GUI] Added more shortcuts to backend adminbar.
  • [INTEGRATION] WooCommerce visitors are now served from public cache when cart is empty. – December 29 2017

  • [BUGFIX] Fixed an extra trailing underscore issue when saving multiple lines with DNS Prefetch.
  • [UPDATE] Cleaned up unused dependency vendor files.

1.7.1 – December 28 2017

  • [NEW FEATURE] Added DNS Prefetch setting on the Optimize page.
  • [NEW FEATURE] Added Combined File Max Size setting on the Tuning page.
  • [IMPROVEMENT] Improved JS/CSS minify to achieve higher page scores.
  • [IMPROVEMENT] Optimized JS/CSS files will not be served from private cache for OLS or with ESI off.
  • [UPDATE] Fixed a potential warning for new installations on the Settings page.
  • [UPDATE] Fixed an issue with guest users occasionally receiving PHP warnings.
  • [BUGFIX] Fixed a bug with the Improve HTTPS Compatibility setting failing to save.
  • Thanks to all of our users for your encouragement and support! Happy New Year!
  • PS: Lookout 2018, we’re back!

1.7 – December 22 2017

  • [NEW FEATURE] Drop Query Strings setting in the Cache tab.
  • [NEW FEATURE] Multiple CDN Mapping in the CDN tab.
  • [IMPROVEMENT] Improve HTTP/HTTPS Compatibility setting in the Advanced tab.
  • [IMPROVEMENT] Keep JS/CSS original position in HTML when excluded in setting.
  • [IAPI] Reset client level credit after Image Optimization data is destroyed.
  • [REFACTOR] Refactored build_input/textarea functions in admin_display class.
  • [REFACTOR] Refactored CDN class.
  • [GUI] Added a notice to Image Optimization and Crawler to warn when cache is disabled.
  • [GUI] Improved image optimization indicator styles in Media Library List.

1.6.7 – December 15 2017

  • [IAPI] Added ability to scan for new image thumbnail sizes and auto-resend image optimization requests.
  • [IAPI] Added ability to destroy all optimization data.
  • [IAPI] Updated IAPI to v1.6.7.
  • [INTEGRATION] Fixed certain 3rd party plugins calling REST without user nonce causing logged in users to be served as guest. – December 8 2017

  • [IAPI] Limit first-time submission to one image group for test-run purposes.
  • [BUGFIX] Fixed vary group generation issue associated with custom user role plugins.
  • [BUGFIX] Fixed WooCommerce issue where logged-in users were erroneously purged when ESI is off.
  • [BUGFIX] Fixed WooCommerce cache miss issue when ESI is off.

1.6.6 – December 6 2017

  • [NEW FEATURE] Preserve EXIF in Media setting.
  • [NEW FEATURE] Clear log button in Debug Log Viewer.
  • [IAPI] Fixed notified images resetting to previous status when pulling.
  • [IAPI] Fixed HTTPS compatibility for image optimization initialization.
  • [IAPI] An error message is now displayed when image optimization request submission is bypassed due to a lack of credit.
  • [IAPI] IAPI v1.6.6.
  • [IMPROVEMENT] Support JS data-no-optimize attribute to bypass optimization.
  • [GUI] Added image group wiki link.
  • [INTEGRATION] Improved compatibility with Login With Ajax.
  • [INTEGRATION] Added function_exists check for WooCommerce to avoid 500 errors. – December 1 2017

  • [HOTFIX] Fixed warning message on Edit .htaccess page.

1.6.5 – November 30 2017

  • [IAPI] Manually pull image optimization action button.
  • [IAPI] Automatic credit system for image optimization to bypass unfinished image optimization error.
  • [IAPI] Notify failed images from LiteSpeed’s Image Server.
  • [IAPI] Reset/Clear failed images feature.
  • [IAPI] Redesigned report page.
  • [REFACTOR] Moved pull_img logic from admin_api to media.
  • [BUGFIX] Fixed a compatibility issue for clients who have allow_url_open setting off.
  • [BUGFIX] Fixed logged in users sometimes being served from guest cache.
  • [UPDATE] Environment report is no longer saved to a file.
  • [UPDATE] Removed crawler reset notification.
  • [GUI] Added more details on image optimization.
  • [GUI] Removed info page from admin menu.
  • [GUI] Moved environment report from network level to single site level.
  • [GUI] Crawler time added in a user friendly format.
  • [INTEGRATION] Improved compatibility with FacetWP json call.

1.6.4 – November 22 2017

  • [NEW FEATURE] Send env reports privately with a new built-in report number referral system.
  • [IAPI] Increased request timeout to fix a cUrl 28 timeout issue.
  • [BUGFIX] Fixed a TTL max value validation bug.
  • [INTEGRATION] Improved Contact Form 7 REST call compatibility for logged in users.
  • Thanks for all your ratings. That encouraged us to be more diligent. Happy Thanksgiving.

1.6.3 – November 17 2017

  • [NEW FEATURE] Only async Google Fonts setting.
  • [NEW FEATURE] Only create WebP images when optimizing setting.
  • [NEW FEATURE] Batch switch images to original/optimized versions in Image Optimization.
  • [NEW FEATURE] Browser Cache TTL setting.
  • [NEW FEATURE] Cache WooCommerce Cart setting.
  • [IMPROVEMENT] Moved optimized JS/CSS snippet in header html to after meta charset.
  • [IMPROVEMENT] Added a constant for better JS/CSS optimization compatibility for different dir WordPress installation.
  • [IAPI] Take over failed callback check instead of bypassing it.
  • [IAPI] Image optimization requests are now limited to 500 images per request.
  • [BUGFIX] Fixed a parsing failure bug not using attributes in html elements with dash.
  • [BUGFIX] Fixed a bug causing non-script code to move to the top of a page when not using combination.
  • [UPDATE] Added detailed logs for external link detection.
  • [UPDATE] Added new lines in footer comment to avoid Firefox crash when enabled HTML minify.
  • [API] Purge private / Purge private all / Add private tag functions.
  • [GUI] Redesigned image optimization operation links in Media Lib list.
  • [GUI] Tweaked wp-admin form save button position.
  • [GUI] Added “learn more” link for image optimization. – November 6 2017

  • [INTEGRATION] Improved compatibility with old WooCommerce versions to avoid unknown 500 errors.
  • [BUGFIX] Fixed WebP images sometimes being used in non-supported browsers.
  • [BUGFIX] Kept query strings for HTTP/2 push to avoid re-fetching pushed sources.
  • [BUGFIX] Excluded JS/CSS from HTTP/2 push when using CDN.
  • [GUI] Fixed a typo in Media list.
  • [GUI] Made more image optimization strings translatable.
  • [GUI] Updated Tuning description to include API documentation.

1.6.2 – November 3 2017

  • [NEW FEATURE] Do Not Cache Roles.
  • [NEW FEATURE] Use WebP Images for supported browsers.
  • [NEW FEATURE] Disable Optimization Poll ON/OFF Switch in Media tab.
  • [NEW FEATURE] Revert image optimization per image in Media list.
  • [NEW FEATURE] Disable/Enable image WebP per image in Media list.
  • [IAPI] Limit optimized images fetching cron to a single process.
  • [IAPI] Updated IAPI to v1.6.2.
  • [IAPI] Fixed repeating image request issue by adding a failure status to local images.
  • [REFACTOR] Refactored login vary logic.

1.6.1 – October 29 2017

  • [IAPI] Updated LiteSpeed Image Optimization Server API to v1.6.1.

1.6 – October 27 2017

  • [NEW FEATURE] Image Optimization.
  • [NEW FEATURE] Role Excludes for Optimization.
  • [NEW FEATURE] Combined CSS/JS Priority.
  • [IMPROVEMENT] Bypass CDN for login/register page.
  • [UPDATE] Expanded ExpiresByType rules to include new font types. ( Thanks to JMCA2 )
  • [UPDATE] Removed duplicated type param in admin action link.
  • [BUGFIX] Fixed CDN wrongly replacing img base64 and “fake” src in JS.
  • [BUGFIX] Fixed image lazy load replacing base64 src.
  • [BUGFIX] Fixed a typo in Optimize class exception.
  • [GUI] New Tuning tab in admin settings panel.
  • [REFACTOR] Simplified router by reducing actions and adding types.
  • [REFACTOR] Renamed run() to finalize() in buffer process.

1.5 – October 17 2017

  • [NEW FEATURE] Exclude JQuery (to fix inline JS error when using JS Combine).
  • [NEW FEATURE] Load JQuery Remotely.
  • [NEW FEATURE] JS Deferred Excludes.
  • [NEW FEATURE] Lazy Load Images Excludes.
  • [NEW FEATURE] Lazy Load Image Placeholder.
  • [IMPROVEMENT] Improved Lazy Load size attribute for w3c validator.
  • [UPDATE] Added basic caching info and LSCWP version to HTML comment.
  • [UPDATE] Added debug log to HTML detection.
  • [BUGFIX] Fixed potential font CORS issue when using CDN.
  • [GUI] Added API docs to setting description.
  • [REFACTOR] Relocated all classes under includes with backwards compatibility.
  • [REFACTOR] Relocated admin templates.

1.4 – October 11 2017

  • [NEW FEATURE] Lazy load images/iframes.
  • [NEW FEATURE] Clean CSS/JS optimizer data functionality in DB Optimizer panel.
  • [NEW FEATURE] Exclude certain URIs from optimizer.
  • [IMPROVEMENT] Improved optimizer HTML check compatibility to avoid conflicts with ESI functions.
  • [IMPROVEMENT] Added support for using ^ when matching the start of a path in matching settings.
  • [IMPROVEMENT] Added wildcard support in CDN original URL.
  • [IMPROVEMENT] Moved optimizer table initialization to admin setting panel with failure warning.
  • [UPDATE] Added a one-time welcome banner.
  • [UPDATE] Partly relocated class: ‘api’.
  • [API] Added API wrapper for removing wrapped HTML output.
  • [INTEGRATION] Fixed WooCommerce conflict with optimizer.
  • [INTEGRATION] Private cache support for WooCommerce v3.2.0+.
  • [GUI] Added No Optimization menu to frontend. – October 6 2017

  • [BUGFIX] Improved optimizer table creating process in certain database charset to avoid css/js minify/combination failure.

1.3.1 – October 5 2017

  • [NEW FEATURE] Remove WP Emoji Option.
  • [IMPROVEMENT] Separated optimizer data from wp_options to improve compatibility with backup plugins.
  • [IMPROVEMENT] Enhanced crawler cron hook to prevent de-scheduling in some cases.
  • [IMPROVEMENT] Enhanced Remove Query Strings to also remove Emoji query strings.
  • [IMPROVEMENT] Enhanced HTML detection when extra spaces are present at the beginning.
  • [UPDATE] Added private cache support for OLS.
  • [BUGFIX] Self-redirects are no longer cached.
  • [BUGFIX] Fixed css async lib warning when loading in HTTP/2 push.

1.3 – October 1 2017

  • [NEW FEATURE] Added Browser Cache support.
  • [NEW FEATURE] Added Remove Query Strings support.
  • [NEW FEATURE] Added Remove Google Fonts support.
  • [NEW FEATURE] Added Load CSS Asynchronously support.
  • [NEW FEATURE] Added Load JS Deferred support.
  • [NEW FEATURE] Added Critical CSS Rules support.
  • [NEW FEATURE] Added Private Cached URIs support.
  • [NEW FEATURE] Added Do Not Cache Query Strings support.
  • [NEW FEATURE] Added frontend adminbar shortcuts ( Purge this page/Do Not Cache/Private cache ).
  • [IMPROVEMENT] Do Not Cache URIs now supports full URLs.
  • [IMPROVEMENT] Improved performance of Do Not Cache settings.
  • [IMPROVEMENT] Encrypted vary cookie.
  • [IMPROVEMENT] Enhanced HTML optimizer.
  • [IMPROVEMENT] Limited combined file size to avoid heavy memory usage.
  • [IMPROVEMENT] CDN supports custom upload folder for media files.
  • [API] Added purge single post API.
  • [API] Added version compare API.
  • [API] Enhanced ESI API for third party plugins.
  • [INTEGRATION] Compatibility with NextGEN Gallery v2.2.14.
  • [INTEGRATION] Compatibility with Caldera Forms v1.5.6.2+.
  • [BUGFIX] Fixed CDN&Minify compatibility with css url links.
  • [BUGFIX] Fixed .htaccess being regenerated despite there being no changes.
  • [BUGFIX] Fixed CDN path bug for subfolder WP instance.
  • [BUGFIX] Fixed crawler path bug for subfolder WP instance with different site url and home url.
  • [BUGFIX] Fixed a potential Optimizer generating redundant duplicated JS in HTML bug.
  • [GUI] Added a more easily accessed submit button in admin settings.
  • [GUI] Admin settings page cosmetic changes.
  • [GUI] Reorganized GUI css/img folder structure.
  • [REFACTOR] Refactored configuration init.
  • [REFACTOR] Refactored admin setting save.
  • [REFACTOR] Refactored .htaccess operator and rewrite rule generation. – September 20 2017

  • [UPDATE] Improved PHP5.3 compatibility.

1.2.3 – September 20 2017

  • [NEW FEATURE] Added CDN support.
  • [IMPROVEMENT] Improved compatibility when upgrading by fixing a possible fatal error.
  • [IMPROVEMENT] Added support for custom wp-content paths.
  • [BUGFIX] Fixed non-primary network blogs not being able to minify.
  • [BUGFIX] Fixed HTML Minify preventing Facebook from being able to parse og tags.
  • [BUGFIX] Preview page is no longer cacheable.
  • [BUGFIX] Corrected log and crawler timezone to match set WP timezone.
  • [GUI] Revamp of plugin GUI.

1.2.2 – September 15 2017

  • [NEW FEATURE] Added CSS/JS minification.
  • [NEW FEATURE] Added CSS/JS combining.
  • [NEW FEATURE] Added CSS/JS HTTP/2 server push.
  • [NEW FEATURE] Added HTML minification.
  • [NEW FEATURE] Added CSS/JS cache purge button in management.
  • [UPDATE] Improved debug log formatting.
  • [UPDATE] Fixed some description typos.

1.2.1 – September 7 2017

  • [NEW FEATURE] Added Database Optimizer.
  • [NEW FEATURE] Added Tab switch shortcut.
  • [IMPROVEMENT] Added cache disabled check for management pages.
  • [IMPROVEMENT] Renamed .htaccess backup for security.
  • [BUGFIX] Fixed woocommerce default ESI setting bug.
  • [REFACTOR] Show ESI page for OLS with notice.
  • [REFACTOR] Management Purge GUI updated. – September 1 2017

  • [BUGFIX] Fixed a naming bug for network constant ON2.

1.2.0 – September 1 2017

  • [NEW FEATURE] Added ESI support.
  • [NEW FEATURE] Added a private cache TTL setting.
  • [NEW FEATURE] Debug level can now be set to either ‘Basic’ or ‘Advanced’.
  • [REFACTOR] Renamed const ‘NOTSET’ to ‘ON2’ in class config.

1.1.6 – August 23 2017

  • [NEW FEATURE] Added option to privately cache logged-in users.
  • [NEW FEATURE] Added option to privately cache commenters.
  • [NEW FEATURE] Added option to cache requests made through WordPress REST API.
  • [BUGFIX] Fixed network 3rd-party full-page cache detection bug.
  • [GUI] New Cache and Purge menus in Settings. – August 16 2017

  • [IMPROVEMENT] Improved compatibility of frontend&backend .htaccess path detection when site url is different than installation path.
  • [UPDATE] Removed unused format string from header tags.
  • [BUGFIX] ‘showheader’ Admin Query String now works.
  • [REFACTOR] Cache tags will no longer output if not needed.

1.1.5 – August 10 2017

  • [NEW FEATURE] Scheduled Purge URLs feature.
  • [NEW FEATURE] Added buffer callback to improve compatibility with some plugins that force buffer cleaning.
  • [NEW FEATURE] Hide purge_all admin bar quick link if cache is disabled.
  • [NEW FEATURE] Required htaccess rules are now displayed when .htaccess is not writable.
  • [NEW FEATURE] Debug log features: filter log support; heartbeat control; log file size limit; log viewer.
  • [IMPROVEMENT] Separate crawler access log.
  • [IMPROVEMENT] Lazy PURGE requests made after output are now queued and working.
  • [IMPROVEMENT] Improved readme.txt with keywords relating to our compatible plugins list.
  • [UPDATE] ‘ExpiresDefault’ conflict msg is now closeable and only appears in the .htaccess edit screen.
  • [UPDATE] Improved debug log formatting.
  • [INTEGRATION] Compatibility with MainWP plugin.
  • [BUGFIX] Fixed Woocommerce order not purging product stock quantity.
  • [BUGFIX] Fixed Woocommerce scheduled sale price not updating issue.
  • [REFACTOR] Combined cache_enable functions into a single function.

1.1.4 – August 1 2017

  • [IMPROVEMENT] Unexpected rewrite rules will now show an error message.
  • [IMPROVEMENT] Added Cache Tag Prefix setting info in the Env Report and Info page.
  • [IMPROVEMENT] LSCWP setting link is now displayed in the plugin list.
  • [IMPROVEMENT] Improved performance when setting cache control.
  • [UPDATE] Added backward compatibility for v1.1.2.2 API calls. (used by 3rd-party plugins)
  • [BUGFIX] Fixed WPCLI purge tag/category never succeeding.

1.1.3 – July 31 2017

  • [NEW FEATURE] New LiteSpeed_Cache_API class and documentation for 3rd party integration.
  • [NEW FEATURE] New API function litespeed_purge_single_post($post_id).
  • [NEW FEATURE] PHP CLI support for crawler.
  • [IMPROVEMENT] Set ‘no cache’ for same location 301 redirects.
  • [IMPROVEMENT] Improved LiteSpeed footer comment compatibility.
  • [UPDATE] Removed ‘cache tag prefix’ setting.
  • [BUGFIX] Fixed a bug involving CLI purge all.
  • [BUGFIX] Crawler now honors X-LiteSpeed-Cache-Control for the ‘no-cache’ header.
  • [BUGFIX] Cache/rewrite rules are now cleared when the plugin is uninstalled.
  • [BUGFIX] Prevent incorrect removal of the advanced-cache.php on deactivation if it was added by another plugin.
  • [BUGFIX] Fixed subfolder WP installations being unable to Purge By URL using a full URL path.
  • [REFACTOR] Reorganized existing code for an upcoming ESI release. – July 13 2017

  • [BUGFIX] Fixed blank page in Hebrew language post editor by removing unused font-awesome and jquery-ui css libraries. – July 5 2017

  • [UPDATE] Improved compatibility with WooCommerce v3.1.0.

1.1.2 – June 20 2017

  • [BUGFIX] Fixed missing form close tag.
  • [UPDATE] Added a wiki link for enabling the crawler.
  • [UPDATE] Improved Site IP description.
  • [UPDATE] Added an introduction to the crawler on the Information page.
  • [REFACTOR] Added more detailed error messages for Site IP and Custom Sitemap settings. – June 15 2017

  • [BUGFIX] Hotfix for insufficient validation of site IP value in crawler settings.

1.1.1 – June 15 2017

  • [NEW] As of LiteSpeed Web Server v.5.1.16, the crawler can now be enabled/disabled at the server level.
  • [NEW] Added the ability to provide a custom sitemap for crawling.
  • [NEW] Added ability to use site IP address directly in crawler settings.
  • [NEW] Crawler performance improved with the use of new custom user agent ‘lsrunner’.
  • [NEW] “Purge By URLs” now supports full URL paths.
  • [NEW] Added thirdparty WP-PostRatings compatibility.
  • [BUGFIX] Cache is now cleared when changing post status from published to draft.
  • [BUGFIX] WHM activation message no longer continues to reappear after being dismissed.
  • [COSMETIC] Display recommended values for settings. – June 8 2017

  • [UPDATE] Improved default crawler interval setting.
  • [UPDATE] Tested up to WP 4.8.
  • [BUGFIX] Fixed compatibility with plugins that output json data.
  • [BUGFIX] Fixed tab switching bug.
  • [BUGFIX] Removed occasional duplicated messages on save.
  • [COSMETIC] Improved crawler tooltips and descriptions.

1.1.0 – June 6 2017

  • [NEW] Added a crawler – this includes configuration options and a dedicated admin page. Uses wp-cron
  • [NEW] Added integration for WPLister
  • [NEW] Added integration for Avada
  • [UPDATE] General structure of the plugin revamped
  • [UPDATE] Improved look of admin pages
  • [BUGFIX] Fix any/all wp-content path retrieval issues
  • [BUGFIX] Use realpath to clear symbolic link when determining .htaccess paths
  • [BUGFIX] Fixed a bug where upgrading multiple plugins did not trigger a purge all
  • [BUGFIX] Fixed a bug where cli import_options did not actually update the options.
  • [REFACTOR] Most of the files in the code were split into more, smaller files

1.0.15 – April 20 2017

  • [NEW] Added Purge Pages and Purge Recent Posts Widget pages options.
  • [NEW] Added wp-cli command for setting and getting options.
  • [NEW] Added an import/export options cli command.
  • [NEW] Added wpForo integration.
  • [NEW] Added Theme My Login integration.
  • [UPDATE] Purge adjacent posts when publish a new post.
  • [UPDATE] Change environment report file to .php and increase security.
  • [UPDATE] Added new purgeby option to wp-cli.
  • [UPDATE] Remove nag for multiple sites.
  • [UPDATE] Only inject LiteSpeed javascripts in LiteSpeed pages.
  • [REFACTOR] Properly check for zero in ttl settings.
  • [BUGFIX] Fixed the 404 issue that can be caused by some certain plugins when save the settings.
  • [BUGFIX] Fixed mu-plugin compatibility.
  • [BUGFIX] Fixed problem with creating zip backup.
  • [BUGFIX] Fixed conflict with jetpack. – January 31 2017

  • [UPDATE] Removed Freemius integration due to feedback.

1.0.14 – January 30 2017

  • [NEW] Added error page caching. Currently supports 403, 404, 500s.
  • [NEW] Added a purge errors action.
  • [NEW] Added wp-cli integration.
  • [UPDATE] Added support for multiple varies.
  • [UPDATE] Reorganize the admin interface to be less cluttered.
  • [UPDATE] Add support for LiteSpeed Web ADC.
  • [UPDATE] Add Freemius integration.
  • [REFACTOR] Made some changes so that the rewrite rules are a little more consistent.
  • [BUGFIX] Check member type before adding purge all button.
  • [BUGFIX] Fixed a bug where activating/deactivating the plugin quickly caused the WP_CACHE error to show up.
  • [BUGFIX] Handle more characters in the rewrite parser.
  • [BUGFIX] Correctly purge posts when they are made public/private. – November 30 2016

  • [BUGFIX] Fixed a bug where a global was being used without checking existence first, causing unnecessary log entries.

1.0.13 – November 28 2016

  • [NEW] Add an Empty Entire Cache button.
  • [NEW] Add stale logic to certain purge actions.
  • [NEW] Add option to use primary site settings for all subsites in a multisite environment.
  • [NEW] Add support for Aelia CurrencySwitcher
  • [UPDATE] Add logic to allow third party vary headers
  • [UPDATE] Handle password protected pages differently.
  • [BUGFIX] Fixed bug caused by saving settings.
  • [BUGFIX] FIxed bug when searching for advanced-cache.php

1.0.12 – November 14 2016

  • [NEW] Added logic to generate environment reports.
  • [NEW] Created a notice that will be triggered when the WHM Plugin installs this plugin. This will notify users when the plugin is installed by their server admin.
  • [NEW] Added the option to cache 404 pages via 404 Page TTL setting.
  • [NEW] Reworked log system to be based on selection of yes or no instead of log level.
  • [NEW] Added support for Autoptimize.
  • [NEW] Added Better WP Minify integration.
  • [UPDATE] On plugin disable, clear .htaccess.
  • [UPDATE] Introduced URL tag. Changed Purge by URL to use this new tag.
  • [BUGFIX] Fixed a bug triggered when .htaccess files were empty.
  • [BUGFIX] Correctly determine when to clear files in multisite environments (wp-config, advanced-cache, etc.).
  • [BUGFIX] When disabling the cache, settings changed in the same save will now be saved.
  • [BUGFIX] Various bugs from setting changes and multisite fixed.
  • [BUGFIX] Fixed two bugs with the .htaccess path search.
  • [BUGFIX] Do not alter $_GET in add_quick_purge. This may cause issues for functionality occurring later in the same request.
  • [BUGFIX] Right to left radio settings were incorrectly displayed. The radio buttons themselves were the opposite direction of the associated text.

1.0.11 – October 11 2016

  • [NEW] The plugin will now set cachelookup public on.
  • [NEW] New option – check advanced-cache.php. This enables users to have two caching plugins enabled at the same time as long as the other plugin is not used for caching purposes. For example, using another cache plugin for css/js minification.
  • [UPDATE] Rules added by the plugin will now be inserted into an LSCACHE START/END PLUGIN comment block.
  • [UPDATE] For woocommerce pages, if a user visits a non-cached page with a non-empty cart, do not cache the page.
  • [UPDATE] If woocommerce needs to display any notice, do not cache the page.
  • [UPDATE] Single site settings are now in both the litespeed cache submenu and the settings submenu.
  • [BUGFIX] Multisite network options were not updated on upgrade. This is now corrected.

1.0.10 – September 16 2016

  • Added a check for LSCACHE_NO_CACHE definition.
  • Added a Purge All button to the admin bar.
  • Added logic to purge the cache when upgrading a plugin or theme. By default this is enabled on single site installations and disabled on multisite installations.
  • Added support for WooCommerce Versions < 2.5.0.
  • Added .htaccess backup rotation. Every 10 backups, an .htaccess archive will be created. If one already exists, it will be overwritten.
  • Moved some settings to the new Specific Pages tab to reduce clutter in the General tab.
  • The .htaccess editor is now disabled if DISALLOW_FILE_EDIT is set.
  • After saving the Cache Tag Prefix setting, all cache will be purged. – August 26 2016

  • Fixed a bug where an error displayed on the configuration screen despite not being an error.
  • Change logic to check .htaccess file less often.

1.0.9 – August 25 2016

  • [NEW] Added functionality to cache and purge feeds.
  • [NEW] Added cache tag prefix setting to avoid conflicts when using LiteSpeed Cache for WordPress with LiteSpeed Cache for XenForo and LiteMage.
  • [NEW] Added hooks to allow third party plugins to create config options.
  • [NEW] Added WooCommerce config options.
  • The plugin now also checks for wp-config in the parent directory.
  • Improved WooCommerce support.
  • Changed .htaccess backup process. Will create a .htaccess_lscachebak_orig file if one does not exist. If it does already exist, creates a backup using the date and timestamp.
  • Fixed a bug where get_home_path() sometimes returned an invalid path.
  • Fixed a bug where if the .htaccess was removed from a WordPress subdirectory, it was not handled properly. – July 28 2016

  • Fixed a bug where check cacheable was sometimes not hit.
  • Fixed a bug where extra slashes in clear rules were stripped.

1.0.8 – July 25 2016

  • Added purge all on update check to purge by post id logic.
  • Added uninstall logic.
  • Added configuration for caching favicons.
  • Added configuration for caching the login page.
  • Added configuration for caching php resources (scripts/stylesheets accessed as .php).
  • Set login cookie if user is logged in and it isn’t set.
  • Improved NextGenGallery support to include new actions.
  • Now displays a notice on the network admin if WP_CACHE is not set.
  • Fixed a few php syntax issues.
  • Fixed a bug where purge by pid didn’t work.
  • Fixed a bug where the Network Admin settings were shown when the plugin was active in a subsite, but not network active.
  • Fixed a bug where the Advanced Cache check would sometimes not work. – May 26 2016

  • Fixed a bug where enabling purge all in the auto purge on update settings page did not purge the correct blogs.
  • Fixed a bug reported by user wpc on our forums where enabling purge all in the auto purge on update settings page caused nothing to be cached.

1.0.7 – May 24 2016

  • Added login cookie configuration to the Advanced Settings page.
  • Added support for WPTouch plugin.
  • Added support for WP-Polls plugin.
  • Added Like Dislike Counter third party integration.
  • Added support for Admin IP Query String Actions.
  • Added confirmation pop up for purge all.
  • Refactor: LiteSpeed_Cache_Admin is now split into LiteSpeed_Cache_Admin, LiteSpeed_Cache_Admin_Display, and LiteSpeed_Cache_Admin_Rules
  • Refactor: Rename functions to accurately represent their functionality
  • Fixed a bug that sometimes caused a “no valid header” error message.

1.0.6 – May 5 2016

  • Fixed a bug reported by Knut Sparhell that prevented dashboard widgets from being opened or closed.
  • Fixed a bug reported by Knut Sparhell that caused problems with https support for admin pages.

1.0.5 – April 26 2016

  • [BETA] Added NextGen Gallery plugin support.
  • Added third party plugin integration.
  • Improved cache tag system.
  • Improved formatting for admin settings pages.
  • Converted bbPress to use the new third party integration system.
  • Converted WooCommerce to use the new third party integration system.
  • If .htaccess is not writable, disable separate mobile view and do not cache cookies/user agents.
  • Cache is now automatically purged when disabled.
  • Fixed a bug where .htaccess was not checked properly when adding common rules.
  • Fixed a bug where multisite setups would be completely purged when one site requested a purge all.

1.0.4 – April 7 2016

  • Added logic to cache commenters.
  • Added htaccess backup to the install script.
  • Added an htaccess editor in the wp-admin dashboard.
  • Added do not cache user agents.
  • Added do not cache cookies.
  • Created new LiteSpeed Cache Settings submenu entries.
  • Implemented Separate Mobile View.
  • Modified WP_CACHE not defined message to only show up for users who can manage options.
  • Moved enabled all/disable all from network management to network settings.
  • Fixed a bug where WP_CACHE was not defined on activation if it was commented out.

1.0.3 – March 23 2016

  • Added a Purge Front Page button to the LiteSpeed Cache Management page.
  • Added a Default Front Page TTL option to the general settings.
  • Added ability to define web application specific cookie names through rewrite rules to handle logged-in cookie conflicts when using multiple web applications. [Requires LSWS 5.0.15+]
  • Improved WooCommerce handling.
  • Fixed a bug where activating lscwp sets the “enable cache” radio button to enabled, but the cache was not enabled by default.
  • Refactored code to make it cleaner.
  • Updated readme.txt.

1.0.2 – March 11 2016

  • Added a “Use Network Admin Setting” option for “Enable LiteSpeed Cache”. For single sites, this choice will default to enabled.
  • Added enable/disable all buttons for network admin. This controls the setting of all managed sites with “Use Network Admin Setting” selected for “Enable LiteSpeed Cache”.
  • Exclude by Category/Tag are now text areas to avoid slow load times on the LiteSpeed Cache Settings page for sites with a large number of categories/tags.
  • Added a new line to advanced-cache.php to allow identification as a LiteSpeed Cache file.
  • Activation/Deactivation are now better handled in multi-site environments.
  • Enable LiteSpeed Cache setting is now a radio button selection instead of a single checkbox.
  • Can now add ‘$’ to the end of a URL in Exclude URI to perform an exact match.
  • The _lscache_vary cookie will now be deleted upon logout.
  • Fixed a bug in multi-site setups that would cause a “function already defined” error.

1.0.1 – March 8 2016

  • Added Do Not Cache by URI, by Category, and by Tag. URI is a prefix/string equals match.
  • Added a help tab for plugin compatibilities.
  • Created logic for other plugins to purge a single post if updated.
  • Fixed a bug where woocommerce pages that display the cart were cached.
  • Fixed a bug where admin menus in multi-site setups were not correctly displayed.
  • Fixed a bug where logged in users were served public cached pages.
  • Fixed a compatibility bug with bbPress. If there is a new forum/topic/reply, the parent pages will now be purged as well.
  • Fixed a bug that didn’t allow cron job to update scheduled posts.

1.0.0 – January 20 2016

  • Initial Release.