How to configure LiteSpeed Cache for the best performance?

 

The default configuration of LiteSpeed Cache greatly improves page load times without requiring any additional changes. It is also the most stable configuration for production websites.

However, additional settings can be tweaked to achieve various goals and performance metrics.

 

(Optional) Advanced Tuning


The very first visit to your website is not cached (e.g., if a site has no visitors). Once the cache expires, it is regenerated after a visitor visits the site. Subsequent visits from all visitors then see the cached page. The following options help speed up the very first visit, among other things.

The options can be used as an alternative to or in conjunction with the LiteSpeed Crawler.

These are advanced options for experienced users and webmasters. Each of these options can further enhance page load times and page speed scores under different circumstances.

WARNING!
These options can have a negative impact on your website. Do not enable them without fully understanding the pros and cons. Make sure to read the caveats and warnings by visiting the associated links before enabling them:

https://docs.litespeedtech.com/lscache/lscwp/cache/#serve-stale
https://docs.litespeedtech.com/lscache/lscwp/general/#guest-mode
https://docs.litespeedtech.com/lscache/lscwp/general/#guest-optimization

 

Serve Stale

Enabling "Serve Stale" can improve TTFB for the very first page view by delivering the stale copy of a cached page to visitors until the cache is (re)generated.

 

  1. Log in to WordPress Dashboard.

  2. Go to LiteSpeed Cache > Cache > Purge.

  3. Set "Serve Stale" to "ON".

  4. Save Changes.

  5. View your website in incognito mode in the browser to check whether it caused any issues.

 

Guest Mode

Guest Mode serves a cached page for a visitor's first request, improving page load time on their initial visit.

 

  1. Log in to WordPress Dashboard.

  2. Go to LiteSpeed Cache > General > General Settings.

  3. Set "Guest Mode" to "ON".

  4. Save Changes.

  5. View your website in incognito mode in the browser to check whether it caused any issues.

 

Guest Optimization

Guest Optimization serves a cached page with maximum level of page and image optimization, greatly improving page speed scores, on services like GTmetrix and PageSpeed Insights. It can increase disk usage and Quic.cloud optimization usage.

It might also degrade user experience for human visitors. Check your site in incognito mode in your browser to view it as a first-time visitor after enabling this option.

 

  1. Log in to WordPress Dashboard.

  2. Go to LiteSpeed Cache > General > General Settings.

  3. Set "Guest Optimization" to "ON".

  4. Save Changes.

  5. View your website in incognito mode in the browser to check whether it caused any issues.

 

  • 411 Users Found This Useful
Was this answer helpful?

Related Articles

How to change WordPress admin password?

The admin password of WordPress can be changed in multiple ways without knowing the password....

How to automatically update WordPress using Softaculous?

You can automatically update WordPress using Softaculous. By default, Softaculous updates WP core...

How to clone or stage a WordPress website using Softaculous?

  A staging site or clone allows you to test website settings, plugins, and themes before...

How to clone or stage a WordPress website using WP Toolkit?

  WP Toolkit allows you to clone your existing website. You can use the cloned site as a staging...

How to enable Redis object cache in WordPress?

Redis object cache can improve performance for some websites that perform heavy database queries....