{"id":1960528,"date":"2024-07-23T00:19:37","date_gmt":"2024-07-23T04:19:37","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1960528"},"modified":"2024-08-20T11:12:52","modified_gmt":"2024-08-20T15:12:52","slug":"litespeed-cache-legacy","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/litespeed-cache-legacy\/","title":{"rendered":"LiteSpeed 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<p><a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">LiteSpeed Cache<\/a> 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. <\/p>\n\n<p>In this article, we&#8217;ll show you how to use LiteSpeed Cache with <a href=\"https:\/\/wordpress.org\/plugins\/the-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a> to give your site and your events the best performance possible.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-what-you-need\">What you need<\/h2>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a><\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">LiteSpeed Cache<\/a><\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\" id=\"h-general-settings\">General Settings<\/h2>\n\n<p>The first thing you&#8217;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.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/12\/Screen-Shot-2021-12-08-at-11.23.32-AM.png\" alt=\"LiteSpeed Cache general settings\" class=\"wp-image-1951431\"\/><\/figure>\n\n<p>Alternatively, you can enter your server&#8217;s IP address a bit further down on that page so that you only have to do this once.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/12\/Screen-Shot-2021-12-08-at-11.25.33-AM.png\" alt=\"Server IP address setting\" class=\"wp-image-1951432\"\/><\/figure>\n\n<p>Once you&#8217;re done with the general settings, you can head over to <strong>Manage<\/strong>, which you can find in the top toolbar under the LiteSpeed Cache logo or by clicking <strong>Dashboard<\/strong> on the left sidebar under LiteSpeed Cache. Revisit this area any time you&#8217;d like to check on how your site is performing, and then make adjustments accordingly.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/12\/Screen-Shot-2021-12-08-at-11.29.59-AM.png\" alt=\"LiteSpeed Cache Dashboard\" class=\"wp-image-1951433\"\/><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"h-other-cache-settings\">Other Cache Settings<\/h2>\n\n<p>You can then head over to <strong>Page Optimization<\/strong> &gt; <strong>Media Excludes<\/strong> and add the slugs that you&#8217;d like to make sure don&#8217;t get minified. Our plugins already minify these pages, so removing this option from LiteSpeed Cache will help them to run more smoothly. You&#8217;ll want to add your event slugs here. By default, these are your \/events and \/event pages.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1704\" height=\"1371\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL.png\" alt=\"\" class=\"wp-image-1959437\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL.png 1704w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL-300x241.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL-1024x824.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL-768x618.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/KlYTEyL-1536x1236.png 1536w\" sizes=\"auto, (max-width: 1704px) 100vw, 1704px\" \/><\/figure>\n\n<p>You can optimize the database under <strong>Database<\/strong> and manually click on the items that you&#8217;d like to clear the cache for.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1402\" height=\"523\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/2024-02-15_20-58-41.png\" alt=\"\" class=\"wp-image-1959438\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/2024-02-15_20-58-41.png 1402w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/2024-02-15_20-58-41-300x112.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/2024-02-15_20-58-41-1024x382.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/2024-02-15_20-58-41-768x286.png 768w\" sizes=\"auto, (max-width: 1402px) 100vw, 1402px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"h-excluding-calendar-pages\">Excluding Calendar Pages<\/h2>\n\n<p>LiteSpeed also allows you to utilize an external CDN to speed up your asset delivery. This shouldn\u2019t 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 <strong>CDN &gt; Exclude Path<\/strong> to prevent this issue.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/12\/Screen-Shot-2021-12-08-at-11.52.32-AM.png\" alt=\"Exclude Path with LiteSpeed Cache\" class=\"wp-image-1951437\"\/><\/figure>\n\n<p>You&#8217;ll also want to exclude calendar pages under <strong>LiteSpeed &gt; Cache &gt; Excludes<\/strong>.<\/p>\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-16-at-8.48.25-PM.png\" alt=\"LiteSpeed Cache Settings &gt; Excludes\" class=\"wp-image-1953268\"\/><\/figure>\n\n<p>Lastly, you can use the <strong>Page Optimization &gt; Tuning &#8211; CSS<\/strong> to place your CSS and JS excludes from The Events Calendar plugins.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1177\" height=\"674\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-2.png\" alt=\"\" class=\"wp-image-1959443\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-2.png 1177w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-2-300x172.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-2-1024x586.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-2-768x440.png 768w\" sizes=\"auto, (max-width: 1177px) 100vw, 1177px\" \/><\/figure>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1172\" height=\"477\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-css-3.png\" alt=\"\" class=\"wp-image-1959445\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-css-3.png 1172w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-css-3-300x122.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-css-3-1024x417.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/02\/Tuning-css-3-768x313.png 768w\" sizes=\"auto, (max-width: 1172px) 100vw, 1172px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"h-plugin-folders\">Plugin Folders<\/h2>\n\n<p><meta charset=\"utf-8\">Here is a list of the asset folders of each of our plugins that should be ignored.<\/p>\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>Virtual Events<\/td><td><code>\/wp-content\/plugins\/events-virtual\/(.*).css<\/code><br><code>\/wp-content\/plugins\/events-virtual\/(.*).js<\/code><\/td><\/tr><tr><td>Community Events<\/td><td><code>\/wp-content\/plugins\/the-events-calendar-community-events\/(.*).css<\/code><br><code>\/wp-content\/plugins\/the-events-calendar-community-events\/(.*).js<\/code><\/td><\/tr><tr><td>Community Tickets<\/td><td><code>\/wp-content\/plugins\/the-events-calendar-community-events-tickets\/(.*).css<\/code><br><code>\/wp-content\/plugins\/the-events-calendar-community-events-tickets\/(.*).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<h2 class=\"wp-block-heading\">To copy-paste<\/h2>\n\n<p>You can use the below to copy-paste all CSS and JavaScript asset resources easily.<\/p>\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\/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>\n<h2 class=\"wp-block-heading\" id=\"h-excluding-esi-nonces\">Excluding ESI nonces<\/h2>\n\n<p>Add &nbsp;<code>_tec_view_rest_nonce_primary<\/code>, and <code>_tec_view_rest_nonce_secondary<\/code> to the list of ESI Nonces<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2820\" height=\"1768\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2.png\" alt=\"This displays an options page with a text area where you can add ESI nonces that can be excluded \" class=\"wp-image-1958161\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2.png 2820w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2-300x188.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2-1024x642.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2-768x481.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2-1536x963.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/09\/ExcludingESINonces-2-2048x1284.png 2048w\" sizes=\"auto, (max-width: 2820px) 100vw, 2820px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ll show you how to use LiteSpeed Cache with The Events Calendar to&#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":true,"footnotes":""},"categories":[46],"tags":[19,57],"stellar-product-taxonomy":[152,153,155,156,157,158,159,161,162],"class_list":["post-1960528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integrations","tag-caching","tag-performance","stellar-product-taxonomy-community-events","stellar-product-taxonomy-community-tickets","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus","stellar-product-taxonomy-eventbrite-tickets","stellar-product-taxonomy-events-calendar-pro","stellar-product-taxonomy-filter-bar","stellar-product-taxonomy-the-events-calendar","stellar-product-taxonomy-virtual-events"],"acf":[],"taxonomy_info":{"category":[{"value":46,"label":"Integrations"}],"post_tag":[{"value":19,"label":"Caching"},{"value":57,"label":"Performance"}],"stellar-product-taxonomy":[{"value":152,"label":"Community"},{"value":153,"label":"Community Tickets"},{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"},{"value":157,"label":"Eventbrite Tickets"},{"value":158,"label":"Events Calendar Pro"},{"value":159,"label":"Filter Bar"},{"value":161,"label":"The Events Calendar"},{"value":162,"label":"Virtual Events"}]},"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\/1960528","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=1960528"}],"version-history":[{"count":7,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960528\/revisions"}],"predecessor-version":[{"id":1962520,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960528\/revisions\/1962520"}],"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=1960528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1960528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1960528"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1960528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}