Skip to content

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.

Caching event calendar pages can cause issues with dynamic content such as event listings and date filtering. To exclude them:

  1. In the WordPress admin, navigate to LiteSpeed Cache > Cache.
  2. Click the Excludes tab.
  3. Add the following paths to the URI exclusion list:
/event
/events

The Events Calendar uses nonces for its REST API views that must not be cached. To exclude them:

  1. In the WordPress admin, navigate to LiteSpeed Cache > Cache.
  2. Click the ESI tab.
  3. Add the following nonce values:
_tec_view_rest_nonce_primary
_tec_view_rest_nonce_secondary

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