{"id":1962358,"date":"2024-08-07T10:52:20","date_gmt":"2024-08-07T14:52:20","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1962358"},"modified":"2024-08-07T10:55:39","modified_gmt":"2024-08-07T14:55:39","slug":"w3-total-cache-2","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/w3-total-cache-2\/","title":{"rendered":"W3 Total Cache"},"content":{"rendered":"\n<p><strong>Current Status:<\/strong> <span class=\"tec-compatibility-status tec-status-incompatible\" style=\"border: none; background-color: #334AFF; text-transform: uppercase; border-radius:28px; padding: 10px 20px; color: #fff; font-size: 14px; font-weight: 600;\">compatible<\/span><\/p>\n\n\n\n<p class=\"has-kb-palette-0-background-color has-background\"><strong>\ud83d\udca1Important Notice:<\/strong> This article pertains to the latest plugin versions. For details about legacy plugin versions, please see&nbsp;<a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/w3-total-cache-legacy\/\">this article<\/a>.<br><br>\ud83d\udd0dLearn more about these changes in <a href=\"https:\/\/evnt.is\/1bdy\">this detailed blog post<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">W3 Total Cache<\/a> 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&#8217;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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-you-need\">What you need<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wordpress.org\/plugins\/the-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">W3 Total Cache<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/finding-your-calendar-on-the-front-end\/\" target=\"_blank\" rel=\"noreferrer noopener\">The slug for your calendar and events<\/a> (e.g. <code>\/events<\/code> and <code>\/event<\/code>)<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group has-background\" style=\"background-color:var(--global-palette8)\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>\ud83d\udc4b Throughout this article, we&#8217;ll be using <code>\/events<\/code> and <code>\/event<\/code> for the calendar and event single slugs, respectively. Yours may differ <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/finding-your-calendar-on-the-front-end\/\" target=\"_blank\" rel=\"noreferrer noopener\">depending on your plugin settings<\/a>.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-minify-settings\">Minify settings<\/h2>\n\n\n\n<p>Once W3 Total Cache is installed and activated, head to <strong>Performance<\/strong> \u2192 <strong>Minify<\/strong> from the WordPress dashboard. Look for the &#8220;Advanced&#8221; option on that page.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n\n\n\n<p>Use your Events Slug and Single Event Slug for the following option:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Never minify the following pages<\/li>\n<\/ul>\n\n\n\n<p>Note that you can only use one slug per line as in our example.<br>Once you add your slugs you just need to use the <strong>Save Settings &amp; Purge Caches<\/strong> button at the end of the section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-let-s-talk-about-minification\">Let&#8217;s talk about minification<\/h2>\n\n\n\n<p>There are a few different minification options within this plugin. <strong>We strongly recommend you keep The Events Calendar JS files unminified<\/strong>. But you can allow W3 Total Cache to minify Pages and CSS, just check your Calendar page carefully to make sure everything looks okay.<\/p>\n\n\n\n<p>This is everything that you need to prevent W3 Total Cache from caching any content created by The Events Calendar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cache-settings\">Cache Settings<\/h2>\n\n\n\n<p>Under <strong>Performance &gt; Page Cache<\/strong>, you&#8217;ll also want to exclude your \/event and \/events pages from being cached.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/06\/Screen-Shot-2022-06-17-at-12.02.57-PM.png\" alt=\"Page cache settings with W3 Total Cache and The Events Calendar.\" class=\"wp-image-1953294\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"plugin-folders\">Plugin folders<\/h2>\n\n\n\n<p>Here is a list of the asset folders of each of our plugins that should be ignored.<br>You can use these values in Performance &gt; Minify under the Advanced option.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Plugin Name<\/th><th>Assets Folder<\/th><\/tr><\/thead><tbody><tr><td>The Events Calendar<\/td><td><code>\/wp-content\/plugins\/the-events-calendar\/(.*).css<\/code><br><code>\/wp-content\/plugins\/the-events-calendar\/(.*).js<\/code><\/td><\/tr><tr><td>Events Calendar Pro<\/td><td><code>\/wp-content\/plugins\/events-calendar-pro\/(.*).css<\/code><br><code>\/wp-content\/plugins\/events-calendar-pro\/(.*).js<\/code><\/td><\/tr><tr><td>Events Tickets<\/td><td><code>\/wp-content\/plugins\/event-tickets\/(.*).css<\/code><br><code>\/wp-content\/plugins\/event-tickets\/(.*).js<\/code><\/td><\/tr><tr><td>Events Tickets Plus<\/td><td><code>\/wp-content\/plugins\/event-tickets-plus\/(.*).css<\/code><br><code>\/wp-content\/plugins\/event-tickets-plus\/(.*).js<\/code><\/td><\/tr><tr><td>Filter Bar<\/td><td><code>\/wp-content\/plugins\/the-events-calendar-filterbar\/(.*).css<\/code><br><code>\/wp-content\/plugins\/the-events-calendar-filterbar\/(.*).js<\/code><\/td><\/tr><tr><td>Eventbrite Tickets<\/td><td><code>\/wp-content\/plugins\/the-events-calendar-eventbrite-tickets\/(.*).css<\/code><br><code>\/wp-content\/plugins\/the-events-calendar-eventbrite-tickets\/(.*).js<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">To copy-paste<\/h2>\n\n\n\n<p>You can use the below to copy-paste all CSS and JavaScript asset resources easily.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/wp-content\/plugins\/the-events-calendar\/(.*).css\n\/wp-content\/plugins\/events-calendar-pro\/(.*).css\n\/wp-content\/plugins\/event-tickets\/(.*).css\n\/wp-content\/plugins\/event-tickets-plus\/(.*).css\n\/wp-content\/plugins\/the-events-calendar-filterbar\/(.*).css\n\/wp-content\/plugins\/events-virtual\/(.*).css\n\/wp-content\/plugins\/the-events-calendar-community-events\/(.*).css\n\/wp-content\/plugins\/the-events-calendar-community-events-tickets\/(.*).css\n\/wp-content\/plugins\/the-events-calendar-eventbrite-tickets\/(.*).css\n\n\/wp-content\/plugins\/the-events-calendar\/(.*).js\n\/wp-content\/plugins\/events-calendar-pro\/(.*).js\n\/wp-content\/plugins\/event-tickets\/(.*).js\n\/wp-content\/plugins\/event-tickets-plus\/(.*).js\n\/wp-content\/plugins\/the-events-calendar-filterbar\/(.*).js\n\/wp-content\/plugins\/events-virtual\/(.*).js\n\/wp-content\/plugins\/the-events-calendar-community-events\/(.*).js\n\/wp-content\/plugins\/the-events-calendar-community-events-tickets\/(.*).js\n\/wp-content\/plugins\/the-events-calendar-eventbrite-tickets\/(.*).js\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udca1Important Notice: This article pertains to the latest plugin versions. For details about legacy plugin versions, please see&nbsp;this article. \ud83d\udd0dLearn more about these changes in this detailed blog post. 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&#8230;<\/p>\n","protected":false},"author":77,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[46],"tags":[19,57],"stellar-product-taxonomy":[161],"class_list":["post-1962358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integrations","tag-caching","tag-performance","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":46,"label":"Integrations"}],"post_tag":[{"value":19,"label":"Caching"},{"value":57,"label":"Performance"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"TEC Staff","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/tec_staff\/"},"comment_info":0,"category_info":[{"term_id":46,"name":"Integrations","slug":"integrations","term_group":0,"term_taxonomy_id":46,"taxonomy":"category","description":"","parent":0,"count":115,"filter":"raw","term_order":"0","cat_ID":46,"category_count":115,"category_description":"","cat_name":"Integrations","category_nicename":"integrations","category_parent":0}],"tag_info":[{"term_id":19,"name":"Caching","slug":"caching","term_group":0,"term_taxonomy_id":19,"taxonomy":"post_tag","description":"Learn all about how you can optimize your calendar\u2019s speed and performance with The Events Calendar with these Knowledgebase articles.","parent":0,"count":22,"filter":"raw","term_order":"0"},{"term_id":57,"name":"Performance","slug":"performance","term_group":0,"term_taxonomy_id":57,"taxonomy":"post_tag","description":"Learn all about how you can optimize your calendar's performance with The Events Calendar with these Knowledgebase articles.","parent":0,"count":25,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1962358"}],"version-history":[{"count":4,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962358\/revisions"}],"predecessor-version":[{"id":1962364,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962358\/revisions\/1962364"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1962358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1962358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1962358"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1962358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}