{"id":1960526,"date":"2024-07-23T00:18:05","date_gmt":"2024-07-23T04:18:05","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1960526"},"modified":"2024-08-20T11:12:45","modified_gmt":"2024-08-20T15:12:45","slug":"siteground-optimizer-legacy","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/siteground-optimizer-legacy\/","title":{"rendered":"SiteGround&#8217;s Speed Optimizer"},"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>The Siteground&#8217;s <a href=\"https:\/\/wordpress.org\/plugins\/sg-cachepress\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Speed Optimizer<\/strong><\/a> is a caching and performance plugin designed to link WordPress to the SiteGround Performance services. It can improve your site performance in just a few clicks. However, some default settings provided by that plugin aren&#8217;t quite compatible with <a href=\"https:\/\/theeventscalendar.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a>.<\/p>\n\n<p>But there&#8217;s nothing to worry about here. We&#8217;ll show you how to adjust the Speed Optimizer settings to give your calendar and your site 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\/sg-cachepress\/\" target=\"_blank\" rel=\"noreferrer noopener\">SiteGround Speed Optimizer<\/a><\/li>\n<\/ul>\n\n<p>Note that their Speed Optimizer plugin is something developed for sites hosted in the Siteground servers, so it should not work properly if your site is not hosted there.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-minify-css-html-and-javascript\">Minify CSS, HTML, and Javascript<\/h2>\n\n<p>The best way to keep everything working well together is to exclude our plugin files from their Minify CSS, and Minify Javascript options, so that they don&#8217;t interfere with The Events Calendar files.<\/p>\n\n<p>To do this, on the <a href=\"https:\/\/wordpress.org\/plugins\/sg-cachepress\/\" target=\"_blank\" rel=\"noreferrer noopener\">Speed Optimizer plugin<\/a>, you can use the <em>&#8220;Exclude from CSS minification&#8221;<\/em>, <em>&#8220;Exclude from JS minification&#8221;<\/em>, <em>&#8220;Exclude from CSS combination&#8221;<\/em>, and <em>&#8220;Exclude from JS minification&#8221;<\/em> options to exclude specific scripts from the modification.<\/p>\n\n<p>You&#8217;ll note that, when clicking on the pencil edit icon, the plugin files are not listed there (and that seems to be a bug on that plugin).<\/p>\n\n<p>For documentation purposes, we&#8217;ll show how it should work so you&#8217;ll be able to use it correctly once they fix that plugin issue. For now, as a workaround, please check the note on the <em><a href=\"#h-plugin-folders\">Plugin Folders<\/a><\/em> section below.<\/p>\n\n<h3 class=\"wp-block-heading\">Excluding CSS files<\/h3>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"315\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-16.png\" alt=\"\" class=\"wp-image-1958297\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-16.png 1213w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-16-300x78.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-16-1024x266.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-16-768x199.png 768w\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" \/><\/figure>\n\n<p>Click on the pencil edit icon next to the <em>Exclude from CSS <\/em>Minification section, and add the CSS file paths provided by our plugin (you can see a list at the end of that article).<\/p>\n\n<h3 class=\"wp-block-heading\">Excluding JS files<\/h3>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1215\" height=\"315\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-17.png\" alt=\"\" class=\"wp-image-1958298\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-17.png 1215w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-17-300x78.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-17-1024x265.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-17-768x199.png 768w\" sizes=\"auto, (max-width: 1215px) 100vw, 1215px\" \/><\/figure>\n\n<p>Click on the pencil edit icon next to the <em>Exclude from <\/em>Javascript Minification section, and add the JS file paths provided by our plugin (you can see a list at the end of that article).<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-exclude-urls-from-caching\">Exclude URLs from caching<\/h2>\n\n<p>The other setting you&#8217;ll want to edit is the<em>&#8220;Exclude URLs from caching&#8221;<\/em>, which will keep SiteGround Optimizer from conflicting with The Events Calendar.<\/p>\n\n<p>Click the pencil edit icon next to the <em>Exclude URLs from Caching<\/em> option and this will open a new window where you can simply add the <em>\/events\/*<\/em> and <em>\/event\/*<\/em> URLs there.<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"291\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-18.png\" alt=\"\" class=\"wp-image-1958299\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-18.png 934w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-18-300x93.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/10\/image-18-768x239.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"h-plugin-folders\">Plugin Folders<\/h2>\n\n<p class=\"has-theme-palette-8-background-color has-background\"><strong>Note:<\/strong> Although there is no direct way to exclude all of the plugin folders at this time, we&#8217;ve listed them here. In the meantime, you should manually exclude it using a filter placed into the theme\u2019s functions.php.<br>For more information on how to proceed, please check the following <a href=\"https:\/\/wordpress.org\/support\/topic\/how-to-use-sg-optimizers-filters-procedure\/\" target=\"_blank\" rel=\"noreferrer noopener\">post in their support forums<\/a>. We hope they fix that on their plugin, then no custom coding will be required.<\/p>\n\n<p>Here is a list of the asset folders of our plugins.<\/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>","protected":false},"excerpt":{"rendered":"<p>The Siteground&#8217;s Speed Optimizer is a caching and performance plugin designed to link WordPress to the SiteGround Performance services. It can improve your site performance in just a few clicks. However, some default settings provided by that plugin aren&#8217;t quite compatible with The Events Calendar. But there&#8217;s nothing to worry about here. We&#8217;ll show you&#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":[161],"class_list":["post-1960526","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\/1960526","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=1960526"}],"version-history":[{"count":7,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960526\/revisions"}],"predecessor-version":[{"id":1962518,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960526\/revisions\/1962518"}],"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=1960526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1960526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1960526"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1960526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}