{"id":29949,"date":"2023-02-06T00:57:19","date_gmt":"2023-02-06T00:57:19","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/"},"modified":"2024-07-03T05:19:00","modified_gmt":"2024-07-03T05:19:00","slug":"enable-disable-automatic-cache-clearing","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/nz\/knowledgebase\/enable-disable-automatic-cache-clearing\/","title":{"rendered":"Enable\/Disable Automatic Cache Clearing"},"content":{"rendered":"<h2>Issue<\/h2>\n<p>Most websites do not need their cache cleared. However, there are some sites that require the cache to be cleared due to expired tokens.<\/p>\n<h2>Solution<\/h2>\n<p>There&#8217;s two solutions.<\/p>\n<h3>Clearing cache on certain pages<\/h3>\n<p>You can identify which pages need to be cleared regularly rather than dumping the entire site&#8217;s cache.<\/p>\n<p>Then, under <strong>Staq Hosting &gt; Page Cache &gt; Files TTL<\/strong>, you can set your pages and TTL timer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-28216\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/02\/Cache-TTL-Certain-Pages-1024x636.png\" alt=\"\" width=\"1024\" height=\"636\" \/><\/p>\n<h3>Global Cache Clear<\/h3>\n<p>Before setting this up, if the cache is cleared and preloads, you may find that it takes some time to complete.<\/p>\n<p>However, to set for the cache to automatically clear, go to <strong>Staq Hosting &gt; Page Cache &gt; Options<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-28217\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/02\/TTL-Global-1024x676.png\" alt=\"\" width=\"1024\" height=\"676\" \/><\/p>\n<p>From there, you can set the\u00a0<strong>Cache files TTL\u00a0<\/strong> to clear at a certain time.<\/p>\n","protected":false},"featured_media":29609,"parent":0,"template":"","class_list":["post-29949","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>Enable\/Disable Automatic Cache Clearing - 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\/enable-disable-automatic-cache-clearing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enable\/Disable Automatic Cache Clearing - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Issue Most websites do not need their cache cleared. However, there are some sites that require the cache to be cleared due to expired tokens. Solution There&#8217;s two solutions. Clearing cache on certain pages You can identify which pages need to be cleared regularly rather than dumping the entire site&#8217;s cache. Then, under Staq Hosting&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/\" \/>\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:19:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/\",\"name\":\"Enable\\\/Disable Automatic Cache Clearing - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png\",\"datePublished\":\"2023-02-06T00:57:19+00:00\",\"dateModified\":\"2024-07-03T05:19:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/#breadcrumb\"},\"inLanguage\":\"en-nz\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/enable-disable-automatic-cache-clearing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable\\\/Disable Automatic Cache Clearing\"}]},{\"@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":"Enable\/Disable Automatic Cache Clearing - 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\/enable-disable-automatic-cache-clearing\/","og_locale":"en_US","og_type":"article","og_title":"Enable\/Disable Automatic Cache Clearing - Managed Hosting Platform for WordPress","og_description":"Issue Most websites do not need their cache cleared. However, there are some sites that require the cache to be cleared due to expired tokens. Solution There&#8217;s two solutions. Clearing cache on certain pages You can identify which pages need to be cleared regularly rather than dumping the entire site&#8217;s cache. Then, under Staq Hosting&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-07-03T05:19:00+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/","name":"Enable\/Disable Automatic Cache Clearing - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png","datePublished":"2023-02-06T00:57:19+00:00","dateModified":"2024-07-03T05:19:00+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/#breadcrumb"},"inLanguage":"en-nz","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/"]}]},{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/why-staq-cache-is-the-most-optimal-caching-solution-to-use.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/enable-disable-automatic-cache-clearing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"Enable\/Disable Automatic Cache Clearing"}]},{"@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\/29949","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\/29609"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media?parent=29949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}