{"id":4783,"date":"2018-11-27T18:25:13","date_gmt":"2018-11-27T18:25:13","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/11\/27\/clear-grav-cache\/"},"modified":"2021-08-16T22:22:24","modified_gmt":"2021-08-17T02:22:24","slug":"clear-grav-cache","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/","title":{"rendered":"Clear Grav Cache"},"content":{"rendered":"<p>Grav includes built-in caching configured in the <span class=\"cli\">user\/config\/system.yaml<\/span> file and stored in <span class=\"cli\">\/cache<\/span> folder. Below we cover <strong>how to clear the Grav site cache using the Admin plugin and SSH<\/strong>.<\/p>\n<p> <a class=\"btn btn-primary\" href=\"#admin\" type=\"button\">Admin Plugin<\/a> <a class=\"btn btn-primary\" href=\"#ssh\" type=\"button\">SSH<\/a> <a name=\"admin\"><\/a><\/p>\n<h2>Admin Plugin<\/h2>\n<ol class=\"article_list\">\n<li><strong>Log into Grav<\/strong>.<\/li>\n<li>Select <strong>Clear Cache<\/strong> in the upper-right.   <br><a href=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\" rel=\"lightbox-0\"><img decoding=\"async\" align=\"none\" alt=\"Grav dashboard\" class=\"std_ss\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\" title=\"Click for full image\"><\/a>\n<div style=\"clear:both;\"><\/div>\n<p>Select the arrow to only clear Assets, Images, Cache, or Tmp cache.<\/p><\/li>\n<\/ol>\n<p><a name=\"ssh\"><\/a><\/p>\n<h2>SSH<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/server\/ssh\/do-you-provide-ssh-access\/\" rel=\"noopener\" target=\"_blank\">Login SSH<\/a>.<\/li>\n<li>Type <span class=\"cli\">cd <em>[path-to-grav-folder]<\/em><\/span> to navigate to your Grav directory.<\/li>\n<li>Type <span class=\"cli\">bin\/grav clear-cache<\/span> to clear the cache.\n<pre class=\"cli\">     <span style=\"color: pink;\">Clearing cache<\/span>     <br>     <span style=\"color: red;\">Cleared:<\/span> \/home\/<em>[path-to-grav]<\/em>\/cache\/twig\/*     <span style=\"color: red;\">Cleared:<\/span> \/home\/<em>[path-to-grav]<\/em>\/cache\/doctrine\/*     <span style=\"color: red;\">Cleared:<\/span> \/home\/<em>[path-to-grav]<\/em>\/cache\/compiled\/*     <span style=\"color: red;\">Cleared:<\/span> \/home\/<em>[path-to-grav]<\/em>\/images\/*     <br>     <span style=\"color: red;\">Touched:<\/span> \/home\/<em>[pathtograv]<\/em>\/user\/config\/system.yaml<\/pre>\n<p>Other options to add after the command include:     <br><span class=\"cli\">\u2013all,<\/span> <br><span class=\"cli\">\u2013assets-only<\/span> for CSS and Jquery     <br><span class=\"cli\">\u2013cache-only<\/span> for core changes     <br><span class=\"cli\">\u2013images-only<\/span><\/p><\/li>\n<li>Check your website in a web browser. You may stiil need to <a href=\"\/support\/website\/how-to-clear-browser-cache-for-major-browsers\/\" rel=\"noopener\" target=\"_blank\">clear your browser cache<\/a>.<\/li>\n<\/ol>\n<p><\/p>\n<p>Learn more about Grav in our <a href=\"\/support\/website\/grav-backups\/\" rel=\"noopener\" target=\"_blank\">Support Center<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grav includes built-in caching configured in the user\/config\/system.yaml file and stored in \/cache folder. Below we cover how to clear the Grav site cache using the Admin plugin and SSH. Admin Plugin SSH Admin Plugin Log into Grav. Select Clear Cache in the upper-right. Select the arrow to only clear Assets, Images, Cache, or Tmp<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-4783","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Clear Grav Cache | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to clear your Grav cache using the Admin plugin or SSH.\" \/>\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.inmotionhosting.com\/support\/website\/clear-grav-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Clear Grav Cache | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to clear your Grav cache using the Admin plugin or SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-27T18:25:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:22:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Clear Grav Cache\",\"datePublished\":\"2018-11-27T18:25:13+00:00\",\"dateModified\":\"2021-08-17T02:22:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\"},\"wordCount\":125,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\",\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\",\"name\":\"Clear Grav Cache | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\",\"datePublished\":\"2018-11-27T18:25:13+00:00\",\"dateModified\":\"2021-08-17T02:22:24+00:00\",\"description\":\"Learn how to clear your Grav cache using the Admin plugin or SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Clear Grav Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Clear Grav Cache | InMotion Hosting","description":"Learn how to clear your Grav cache using the Admin plugin or SSH.","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.inmotionhosting.com\/support\/website\/clear-grav-cache\/","og_locale":"en_US","og_type":"article","og_title":"Clear Grav Cache | InMotion Hosting","og_description":"Learn how to clear your Grav cache using the Admin plugin or SSH.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-11-27T18:25:13+00:00","article_modified_time":"2021-08-17T02:22:24+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Clear Grav Cache","datePublished":"2018-11-27T18:25:13+00:00","dateModified":"2021-08-17T02:22:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/"},"wordCount":125,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png","articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/","name":"Clear Grav Cache | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png","datePublished":"2018-11-27T18:25:13+00:00","dateModified":"2021-08-17T02:22:24+00:00","description":"Learn how to clear your Grav cache using the Admin plugin or SSH.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-2-admin-dashboard.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/clear-grav-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Clear Grav Cache"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4783"}],"version-history":[{"count":1,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4783\/revisions"}],"predecessor-version":[{"id":83544,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4783\/revisions\/83544"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}