{"id":8494,"date":"2022-09-02T11:46:55","date_gmt":"2022-09-02T11:46:55","guid":{"rendered":"https:\/\/clustercs.com\/kb\/?docs=docly-documentation\/speed-optimizations\/actions\/speed-engine-clear-cache"},"modified":"2022-09-19T13:08:42","modified_gmt":"2022-09-19T13:08:42","slug":"speed-engine-clear-cache","status":"publish","type":"docs","link":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/","title":{"rendered":"Speed Engine \u2013 Clear Cache"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>\u201c<a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\"><strong>Clear cache<\/strong><\/a>\u201d action allows the definition of a main clear cache URL and to protect it against malicious usage. Use the conditions in the rule to define under which cases this link can be triggered.<\/p>\n\n\n\n<p>This rule allows the definition of a global clear cache mechanism and the links generated for it will trigger clear cache across all the caching engine services involved for this domain (in all the \u201c<a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-cache-with\/\"><strong>Cache With<\/strong><\/a>\u201d rules).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>You can select whether this URL can trigger a clear cache for all NGINX and\/or Varnish caching engines by selecting the appropriate check box near \u201cclear NGINX cache\u201d or \u201cclear varnish cache\u201d<\/p>\n\n\n\n<p>The \u201cClear cache path\u201d field is the actual definition of the clear cache path. Do not confuse this with a \u201cPath\u201d condition that you might select in the conditions area of the rule. That area is there strictly to define (protect) the access to this clear cache URL and any subsequent per zone clear cache URLs defined by the \u201c<a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-cache-with\/\"><strong>Cache With<\/strong><\/a>\u201d rules. For more information on using \u201c<a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-cache-with\/\"><strong>Cache With<\/strong><\/a>\u201d and defining per zone clear cache URLs please read the following article \u201c<a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-cache-with\/\"><strong>Cache With<\/strong><\/a>\u201c.<\/p>\n\n\n\n<p>The actual path will be generated by using the domain name with \u201cClear cache path\u201d added as path without a trailing slash. If you specify a trailing slash, it will be ignored. Please make sure you take this into consideration when you \u201cPath\u201d conditions to filter access to this action. Also, internal clear cache URLs towards the caching engines involved will be generated by appending paths to this \u201cClear cache path\u201d, so a \u201cPath\u201d condition should not employ \u201cends_with\u201d filters or any other combination that would not validate a URL starting with your \u201cClear cache path\u201d path.<\/p>\n\n\n\n<p>Since&nbsp;<strong>ClusterCS<\/strong>&nbsp;handles both single servers and clusters, a clear cache action may require the cache to be cleared on more than one server.&nbsp;<strong>ClusterCS<\/strong>&nbsp;facilitates this by generating links which automatically cycle through the caching engines (servers) involved in the rule. This link can be triggered in a browser for an easy clear cache mechanism. This is especially useful when doing development and frequent clear cache actions are required. For environments when a programmatic trigger of clear cache is required,&nbsp;<strong>ClusterCS<\/strong>&nbsp;generates a link which provides a json that helps build the required individual URLs to trigger the clear cache action on all the involved servers. These links (both website and json) can be retrieved by clicking the \u201cGet Links\u201d button.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cClear cache\u201d action allows the definition of a main clear cache URL and to protect it against malicious usage. Use the conditions in the rule to define under which cases this link can be triggered. This rule allows the definition of a global clear cache mechanism and the links generated for it will trigger clear [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8489,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8494","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base<\/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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"\u201cClear cache\u201d action allows the definition of a main clear cache URL and to protect it against malicious usage. Use the conditions in the rule to define under which cases this link can be triggered. This rule allows the definition of a global clear cache mechanism and the links generated for it will trigger clear [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"ClusterCS Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-19T13:08:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\" \/>\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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\",\"url\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\",\"name\":\"Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/clustercs.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\",\"datePublished\":\"2022-09-02T11:46:55+00:00\",\"dateModified\":\"2022-09-19T13:08:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage\",\"url\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\",\"contentUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clustercs.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ClusterCS Documentation\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Speed Optimizations\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Actions\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Speed Engine \u2013 Clear Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clustercs.com\/kb\/#website\",\"url\":\"https:\/\/clustercs.com\/kb\/\",\"name\":\"ClusterCS Knowledge Base\",\"description\":\"Welcome to ClusterCS Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clustercs.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base","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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/","og_locale":"en_US","og_type":"article","og_title":"Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base","og_description":"\u201cClear cache\u201d action allows the definition of a main clear cache URL and to protect it against malicious usage. Use the conditions in the rule to define under which cases this link can be triggered. This rule allows the definition of a global clear cache mechanism and the links generated for it will trigger clear [&hellip;]","og_url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/","og_site_name":"ClusterCS Knowledge Base","article_modified_time":"2022-09-19T13:08:42+00:00","og_image":[{"url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/","url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/","name":"Speed Engine \u2013 Clear Cache - ClusterCS Knowledge Base","isPartOf":{"@id":"https:\/\/clustercs.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage"},"image":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg","datePublished":"2022-09-02T11:46:55+00:00","dateModified":"2022-09-19T13:08:42+00:00","breadcrumb":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#primaryimage","url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg","contentUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/ClusterCS-Speed-Engine-Actions-%E2%80%93-Clear-Cachea-1024x869.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-clear-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clustercs.com\/kb\/"},{"@type":"ListItem","position":2,"name":"ClusterCS Documentation","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/"},{"@type":"ListItem","position":3,"name":"Speed Optimizations","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/"},{"@type":"ListItem","position":4,"name":"Actions","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/"},{"@type":"ListItem","position":5,"name":"Speed Engine \u2013 Clear Cache"}]},{"@type":"WebSite","@id":"https:\/\/clustercs.com\/kb\/#website","url":"https:\/\/clustercs.com\/kb\/","name":"ClusterCS Knowledge Base","description":"Welcome to ClusterCS Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clustercs.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/comments?post=8494"}],"version-history":[{"count":3,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8494\/revisions"}],"predecessor-version":[{"id":8992,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8494\/revisions\/8992"}],"up":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8489"}],"wp:attachment":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/media?parent=8494"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=8494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}