Current Status: compatible

LiteSpeed Cache is an all-in-one site acceleration plugin featuring an exclusive server-level cache and a collection of optimization features. It can be used on any web server and is compatible with popular plugins like WooCommerce, bbPress, and Yoast SEO.

In this article, we’ll show you how to use LiteSpeed Cache with The Events Calendar to give your site and your events the best performance possible.

What you need

General Settings

The first thing you’ll want to do is head over to the settings. You can request a domain key so that you can link to their cloud and use the data provided in the LiteSpeed cache Dashboard.

LiteSpeed Cache general settings

Alternatively, you can enter your server’s IP address a bit further down on that page so that you only have to do this once.

Server IP address setting

Once you’re done with the general settings, you can head over to Manage, which you can find in the top toolbar under the LiteSpeed Cache logo or by clicking Dashboard on the left sidebar under LiteSpeed Cache. Revisit this area any time you’d like to check on how your site is performing, and then make adjustments accordingly.

LiteSpeed Cache Dashboard

Other Cache Settings

You can then head over to Page Optimization > Media Excludes and add the slugs that you’d like to make sure don’t get minified. Our plugins already minify these pages, so removing this option from LiteSpeed Cache will help them to run more smoothly. You’ll want to add your event slugs here. By default, these are your /events and /event pages.

You can optimize the database under Database and manually click on the items that you’d like to clear the cache for.

Excluding Calendar Pages

LiteSpeed also allows you to utilize an external CDN to speed up your asset delivery. This shouldn’t hurt your calendar, but it can generate some differences for logged-in and logged-out users. You can exclude The Events Calendar CSS and Javascript files under CDN > Exclude Path to prevent this issue.

Exclude Path with LiteSpeed Cache

You’ll also want to exclude calendar pages under LiteSpeed > Cache > Excludes.

LiteSpeed Cache Settings > Excludes

Lastly, you can use the Page Optimization > Tuning – CSS to place your CSS and JS excludes from The Events Calendar plugins.

Plugin Folders

Here is a list of the asset folders of each of our plugins that should be ignored.

Plugin NameAssets Folder
The Events Calendar/wp-content/plugins/the-events-calendar/(.*).css
/wp-content/plugins/the-events-calendar/(.*).js
Events Calendar Pro/wp-content/plugins/events-calendar-pro/(.*).css
/wp-content/plugins/events-calendar-pro/(.*).js
Events Tickets/wp-content/plugins/event-tickets/(.*).css
/wp-content/plugins/event-tickets/(.*).js
Events Tickets Plus/wp-content/plugins/event-tickets-plus/(.*).css
/wp-content/plugins/event-tickets-plus/(.*).js
Filter Bar/wp-content/plugins/the-events-calendar-filterbar/(.*).css
/wp-content/plugins/the-events-calendar-filterbar/(.*).js
Virtual Events/wp-content/plugins/events-virtual/(.*).css
/wp-content/plugins/events-virtual/(.*).js
Community Events/wp-content/plugins/the-events-calendar-community-events/(.*).css
/wp-content/plugins/the-events-calendar-community-events/(.*).js
Community Tickets/wp-content/plugins/the-events-calendar-community-events-tickets/(.*).css
/wp-content/plugins/the-events-calendar-community-events-tickets/(.*).js
Eventbrite Tickets/wp-content/plugins/the-events-calendar-eventbrite-tickets/(.*).css
/wp-content/plugins/the-events-calendar-eventbrite-tickets/(.*).js

To copy-paste

You can use the below to copy-paste all CSS and JavaScript asset resources easily.

/wp-content/plugins/the-events-calendar/(.*).css
/wp-content/plugins/events-calendar-pro/(.*).css
/wp-content/plugins/event-tickets/(.*).css
/wp-content/plugins/event-tickets-plus/(.*).css
/wp-content/plugins/the-events-calendar-filterbar/(.*).css
/wp-content/plugins/events-virtual/(.*).css
/wp-content/plugins/the-events-calendar-community-events/(.*).css
/wp-content/plugins/the-events-calendar-community-events-tickets/(.*).css
/wp-content/plugins/the-events-calendar-eventbrite-tickets/(.*).css

/wp-content/plugins/the-events-calendar/(.*).js
/wp-content/plugins/events-calendar-pro/(.*).js
/wp-content/plugins/event-tickets/(.*).js
/wp-content/plugins/event-tickets-plus/(.*).js
/wp-content/plugins/the-events-calendar-filterbar/(.*).js
/wp-content/plugins/events-virtual/(.*).js
/wp-content/plugins/the-events-calendar-community-events/(.*).js
/wp-content/plugins/the-events-calendar-community-events-tickets/(.*).js
/wp-content/plugins/the-events-calendar-eventbrite-tickets/(.*).js

Excluding ESI nonces

Add  _tec_view_rest_nonce_primary, and _tec_view_rest_nonce_secondary to the list of ESI Nonces

This displays an options page with a text area where you can add ESI nonces that can be excluded