{"id":29876,"date":"2021-04-22T06:02:25","date_gmt":"2021-04-22T06:02:25","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/"},"modified":"2024-07-03T05:08:14","modified_gmt":"2024-07-03T05:08:14","slug":"configure-cache","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/nz\/knowledgebase\/configure-cache\/","title":{"rendered":"Configure Staq Cache"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">Configuring the cache is super simple on Staq.<\/p>\r\n<h2><strong>Enable Cache<\/strong><\/h2>\r\n<p>Log in to the WordPress website in question. Then, under Staq Hosting &gt; enable the toggle, <strong>Enable cache for website<\/strong>:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3204\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2021\/04\/enable-cache-1-1024x424.png\" alt=\"\" width=\"1024\" height=\"424\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p>By default, the caching environment will automatically dump the entire cache when:<\/p>\r\n<ul>\r\n<li>page builders such as Elementor or Beaver Builder regenerates their libraries which will cause our caching system to dump the cache<\/li>\r\n<li>our caching tool detects that you&#8217;ve made global changes<\/li>\r\n<li>you manually clear the cache.\u00a0<\/li>\r\n<\/ul>\r\n<p>Our caching environment will automatically delete the cache for a page\/post that you&#8217;ve updated rather than dumping the entire cache.<\/p>\r\n<h2>Automatically clearing cache for a particular page<\/h2>\r\n<p>Rather than dumping the entire cache for the benefit of updating one page only, we&#8217;ve created a function that will do exactly that.\u00a0<\/p>\r\n<p>Inside Page Cache &gt; Files TTL, you can select the WordPress slug page and the TTL time range and it&#8217;ll automatically dump the cache for that particular file based on the TTL you select.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-28432\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2021\/04\/TTL-Cache-Clear-1024x485.png\" alt=\"\" width=\"1024\" height=\"485\" \/><\/p>\r\n<h2><strong>Enable\/Disable Automatic Cache Clearing<\/strong><\/h2>\r\n<p>To configure when you wish for the cache to automatically clear, you can set the timer under <strong>Cache files TTL in hours<\/strong>:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3206\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2021\/04\/ttl-cache-1024x636.png\" alt=\"\" width=\"1024\" height=\"636\" \/><\/p>\r\n<h2><strong>How to dump cache on archive pages when updating a blog post and etc<\/strong><\/h2>\r\n<p>The Staq caching solution will dump the page cache when you update it, however, out of the box, it will not dump the archive page. A particular scenario is you create a new blog post but the main cached blog page does not show the new blog post.\u00a0<\/p>\r\n<p>By following this knowledge base, you can configure Staq Cache on <a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/published-blog-article-not-showing-on-cached-page\/\">how to automatically delete the archived cache page<\/a> when you create a new page<\/p>\r\n<h2><strong>Preload Cache<\/strong><\/h2>\r\n<p>Under Page Cache, at the bottom of either <strong>Site Options<\/strong> or <strong>Cache Files<\/strong>, you can click\u00a0<strong>Preload Pages<\/strong> which will run the process of generating all caching files for each page.<\/p>\r\n","protected":false},"featured_media":29605,"parent":0,"template":"","class_list":["post-29876","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-caching"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configure Staq Cache - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Staq Cache - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Configuring the cache is super simple on Staq. Enable Cache Log in to the WordPress website in question. Then, under Staq Hosting &gt; enable the toggle, Enable cache for website: &nbsp; By default, the caching environment will automatically dump the entire cache when: page builders such as Elementor or Beaver Builder regenerates their libraries which&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-03T05:08:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/\",\"name\":\"Configure Staq Cache - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png\",\"datePublished\":\"2021-04-22T06:02:25+00:00\",\"dateModified\":\"2024-07-03T05:08:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-nz\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/configure-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Staq Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-nz\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure Staq Cache - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/","og_locale":"en_US","og_type":"article","og_title":"Configure Staq Cache - Managed Hosting Platform for WordPress","og_description":"Configuring the cache is super simple on Staq. Enable Cache Log in to the WordPress website in question. Then, under Staq Hosting &gt; enable the toggle, Enable cache for website: &nbsp; By default, the caching environment will automatically dump the entire cache when: page builders such as Elementor or Beaver Builder regenerates their libraries which&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-07-03T05:08:14+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/","name":"Configure Staq Cache - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png","datePublished":"2021-04-22T06:02:25+00:00","dateModified":"2024-07-03T05:08:14+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/#breadcrumb"},"inLanguage":"en-nz","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cdn-cache-not-clearing-after-changes-to-plugin-theme.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/configure-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"Configure Staq Cache"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-nz"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase\/29876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media\/29605"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media?parent=29876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}