WordPress Optimizations with LiteSpeed Cache (2021)

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. LiteSpeed Cache for WordPress is compatible with ClassicPress. Additional information can be found on the vendor website: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration

GENERAL FEATURES
Free QUIC.cloud CDN Cache
Image Optimization (Lossless/Lossy)
Minify CSS, JavaScript, and HTML
Minify inline CSS/JS
Combine CSS/JS
Automatically generate Critical CSS
Lazyload images/iframes
Responsive Image Placeholders
Multiple CDN Support
Load CSS/JS Asynchronously
Browser Cache Support
Database Cleaner and Optimizer
PageSpeed score optimization
OPcode Cache Support
HTTP/2 Push for CSS/JS (on web servers that support it)
DNS Prefetch
Cloudflare API
Single Site and Multisite (Network) support
Import/Export settings
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 support
HTTP/3 & QUIC support
ESI (Edge Side Includes) support
Widgets and Shortcodes as ESI blocks



When optimizing your WordPress website using the LiteSpeed Cache plugin, there are a few changes that are generally considered safe for all sites.

NOTE: When using any settings, please ensure you test your website thoroughly to ensure that everything is working as expected. Additionally, you may consider turning off caching while you are making significant updates to the site as it can hinder previewing and other changes. Always remember to purge after changes are made!

 

The sections of the menu we care about for this document:

LiteSpeed Menu

We'll start with the General Tab:

Enable Automatic Upgrade and disable Notifications. Then hit save.

Once those are set, then you need to click the Request Domain Key button toward the top to generate a domain key for use for this domain.

Then we can move on to the Cache page:

Here we select [7] Browser and enable the Browser Cache option. This allows the remote client to cache the content provided on the page.

Then we move on to the Image Optimizations page:

Here we select the second tab [2] Image Optimization Settings and enable Auto Request Cron and optionally Create WebP Versions and Image WebP Replacement to replace any images that can be replaced with WebP images and served to browsers that can support them. This can significantly speed up initial page load times that are image heavy.

We then move on to the Page Optimizations page:

On the first page [1] CSS Settings enable CSS Minify, CSS Combine, Unique CSS File and CSS HTTP/2 Push. Optionally, enable Load CSS Asynchronously.

On the second page [2] JS Settings, enable JS Minify, JS Combine, JS Combine External and Inline, and JS HTTP/2 Push.

One final item is to ensure that the database tables are using the proper storage - older sites may be using myISAM and should be converted to InnoDB. The Database page provides a one-click option per table to update the database if it is using the older technology.

NOTE: Please ensure you have a backup of your database before making any changes. 

Lastly, and most importantly, after you have enabled and added these options, you MUST purge all the caches for them to initialize correctly:

  • litespeed, wordpress, wordpress clone, caching, cache, lscache, litespeed cache, optimize, tune, optimization, faster, slow website, fast
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Definitions of Terms and Words

This page will attempt to list common terms and definitions in human readable, not “techie” form....

Create a WordPress Staging Site

What is Staging? The staging environment is a copy of your production website where you can...

Frequently Asked Questions (FAQ) about DigiTimber

FAQ Who is DigiTimber and where are they located? DigiTimber a locally owned and operated web...