W3 Total Cache is one of the most complex and complete cache plugins for WordPress. Developed by the amazing BoldGrid company, it gives you granular control over different caching aspects. Let’s look at how it works with The Events Calendar and find out how to configure the plugin so that the calendar is properly cached for the fastest loading possible.
What you need
👋 Throughout this article, we’ll be using
/event for the calendar and event single slugs, respectively. Yours may differ depending on your plugin settings.
Once W3 Total Cache is installed and activated, head to Performance → Minify from the WordPress dashboard. Look for the “Advanced” option on that page.
Use your Events Slug and Single Event Slug for each of the following options:
- Never minify the following pages
- Never minify the following JS files
- Never minify the following CSS files
Note that you can only use one slug per line as in our example.
Once you add your slugs you just need to use the Save Settings & Purge Caches button at the end of the section.
Let’s talk about minification
There are a few different minification options within this plugin. We strongly recommend you keep The Events Calendar JS files unminified. But you can allow W3 Total Cache to minify Pages and CSS, just check your Calendar page carefully to make sure everything looks okay.
This is everything that you need to prevent W3 Total Cache from caching any content created by The Events Calendar.