LiteSpeed Cache – WordPress plugin Free download

Click to Download

LiteSpeed Cache

Description

LiteSpeed Cache for WordPress (LSCWP) is an all-in-one site acceleration plugin, featuring an exclusive server-level cache and a collection of optimization features.

LSCWP supports WordPress Multisite and is compatible with most popular plugins, including WooCommerce, bbPress, and Yoast SEO.

Requirements

General Features may be used by anyone with any web server (LiteSpeed, Apache, NGiNX, etc.).

LiteSpeed Exclusive Features require OpenLiteSpeed, commercial LiteSpeed products, or LiteSpeed-powered hosting. Why?

Plugin Features

General Features

Object Cache (Memcached/LSMCD/Redis)
Image Optimization (Lossless/Lossy)
Minify CSS, JavaScript, and HTML
Minify inline CSS/JS
Combine CSS/JS
Automatically generate Critical CSS
Lazyload images/iframes
Multiple CDN support
Load CSS/JS Asynchronously
Browser Cache
Database Cleaner and Optimizer
PageSpeed score optimization
OPcode Cache
HTTP/2 Push for CSS/JS (on web servers that support it)
DNS Prefetch
Cloudflare API
Single Site and Multi Site (Network) support
Import/Export settings
Basic/Advanced setting view
Attractive, easy-to-understand interface
WebP image format support
Heartbeat control

LiteSpeed Exclusive Features

Automatic page caching to greatly improve site performance
Automatic purge of related pages based on certain events
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
WooCommerce and bbPress support
WordPress CLI commands
API system for easy cache integration
Exclude from cache by URI, Category, Tag, Cookie, User Agent
Smart preload crawler with support for SEO-friendly sitemap
Multiple crawlers for cache varies
HTTP/2 & QUIC support*
ESI (Edge Side Includes) support*
Widgets and Shortcodes as ESI blocks*

* Feature not available in OpenLiteSpeed

LSCWP Resources

Join our Slack community to connect with other LiteSpeed users.
Ask a question on our support forum.
View detailed documentation on our wiki.
Read WordPress Wednesday tutorials on our blog.
Help translate LSCWP.
LSCWP GitHub repo.

Third Party Compatibility

The vast majority of plugins and themes are compatible with LSCache. Our API is available for those that are not. Use the API to customize smart purging, customize cache rules, create cache varies, and make WP nonce cacheable, among other things.

Privacy

This plugin includes a Privacy blurb that you can add to your site’s Privacy Policy via the WordPress Privacy settings.

For your own information: LiteSpeed Cache for WordPress potentially stores a duplicate copy of every web page on display on your site. The pages are stored locally on the system where LiteSpeed server software is installed and are not transferred to or accessed by LiteSpeed employees in any way, except as necessary in providing routine technical support if you request it. All cache files are temporary, and may easily be purged before their natural expiration, if necessary, via a Purge All command. It is up to individual site administrators to come up with their own cache expiration rules.

In addition to caching, our WordPress plugin has an Image Optimization feature. When optimization is requested, images are transmitted to a remote LiteSpeed server, processed, and then transmitted back for use on your site. LiteSpeed keeps copies of optimized images for 7 days (in case of network stability issues) and then permanently deletes them. Similarly, the WordPress plugin has a Reporting feature whereby a site owner can transmit an environment report to our server so that we may better provide technical support. Neither of these features collects any visitor data. Only server and site data is involved.

Please see LiteSpeed’s Privacy Policy for our complete Privacy/GDPR statement.

Screenshots

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
Image Optimization
Admin Crawler Status Page
Cache Miss Example
Cache Hit Example
Frontend Adminbar Shortcut

Installation

View detailed documentation on our wiki.

For Optimization Without a LiteSpeed Web Server

Install the LiteSpeed Cache for WordPress plugin and activate it.
From the WordPress Dashboard, navigate to LiteSpeed Cache -> Settings. Click Advanced View, and enable the available optimization features in the various tabs.

For Caching and Optimization With a LiteSpeed Web Server

Install LiteSpeed Web Server Enterprise with LSCache Module, LiteSpeed Web ADC, or OpenLiteSpeed with cache module [Free].
Install the LiteSpeed Cache for WordPress plugin and activate it.
From the WordPress Dashboard, navigate to LiteSpeed Cache -> Settings, make sure the option Enable LiteSpeed Cache is set to Enable.
Click Advanced View to enable any desired optimization features in the various tabs.

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.

FAQ

Why do the cache features require LiteSpeed Server?

This plugin communicates with your LiteSpeed Web Server and its built-in page cache (LSCache) to deliver superior performance to your WordPress site. The plugin’s cache features indicate to the server that a page is cacheable and for how long, or they invalidate particular cached pages using tags.

LSCache is a server-level cache, so it’s faster than PHP-level caches. Compare 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. See our Caching 101 blog series.

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. See the Beginner’s Guide.

What about the optimization features of LSCache?

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, Lazy Load for Images, and Image Optimization! And now, many of these features do not require the use of a LiteSpeed web server.

Is the LiteSpeed Cache Plugin for WordPress free?

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

What server software is required for this plugin?

A LiteSpeed web server is required in order to use the LiteSpeed Exclusive Features of this plugin. See Plugin Features above for details.

LiteSpeed Web Server Enterprise with LSCache Module (v5.0.10+)
OpenLiteSpeed (v1.4.17+) – Free and open source!
LiteSpeed WebADC (v2.0+)

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

The General Features may be used with any web server. LiteSpeed is not required.

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 info@litespeedtech.com

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?

Not automatically. LSCWP v1.6+ can optimize your images by request. Navigate to LiteSpeed Cache > Image Optimization.

How do I make a WP nonce cacheable in my third-party plugin?

Our API includes a function that uses ESI to “punch a hole” in a cached page for a nonce. This allows the nonce to be cached for 12 hours, regardless of the TTL of the page it is on.

Quick start: replace wp_create_nonce( 'example' ) with method_exists( 'LiteSpeed_Cache_API', 'nonce' ) ? LiteSpeed_Cache_API::nonce( 'example' ) : wp_create_nonce( 'example' ).

Learn more on our API wiki.

How do I get WP-PostViews to display an updating view count?

Use: <div id="postviews_lscwp"></div>
to replace

NOTE: The id can be changed, but the div id and the ajax function must match.

Replace the ajax query in wp-content/plugins/wp-postviews/postviews-cache.js with

    jQuery.ajax({
        type:"GET",
        url:viewsCacheL10n.admin_ajax_url,
        data:"postviews_id="+viewsCacheL10n.post_id+"&action=postviews",
        cache:!1,
        success:function(data) {
            if(data) {
                jQuery('#postviews_lscwp').html(data+' views');
            }
       }
    });

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 wiki.

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.

What are the known compatible plugins and themes?

WPML
bbPress
WooCommerce
Contact Form 7
Google XML Sitemaps
Yoast SEO
Wordfence Security
NextGen Gallery
ShortPixel
Aelia CurrencySwitcher
Fast Velocity Minify – Thanks 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] (https://www.elegantthemes.com/plugins/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
Beaver Builder
FacetWP (LSWS 5.3.6+)
WpDiscuz

Reviews

Leave a Reply

Your email address will not be published. Required fields are marked *