LiteSpeed Cache with The Events Calendar
LiteSpeed Cache is compatible with The Events Calendar WordPress plugin. Once you have the LiteSpeed Cache plugin enabled, there are two configuration changes you need to make if you are not using the QUIC.Cloud CDN.
Exclude Calendar Pages
Section titled “Exclude Calendar Pages”Caching event calendar pages can cause issues with dynamic content such as event listings and date filtering. To exclude them:
- In the WordPress admin, navigate to LiteSpeed Cache > Cache.
- Click the Excludes tab.
- Add the following paths to the URI exclusion list:
/event/eventsExclude ESI Nonces
Section titled “Exclude ESI Nonces”The Events Calendar uses nonces for its REST API views that must not be cached. To exclude them:
- In the WordPress admin, navigate to LiteSpeed Cache > Cache.
- Click the ESI tab.
- Add the following nonce values:
_tec_view_rest_nonce_primary_tec_view_rest_nonce_secondaryYour WordPress installation should now use LiteSpeed Cache for all pages except your event calendar, ensuring that events display correctly while the rest of your site benefits from caching.