{"id":51634,"date":"2019-12-23T11:30:00","date_gmt":"2019-12-23T16:30:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=51634"},"modified":"2021-08-16T15:44:59","modified_gmt":"2021-08-16T19:44:59","slug":"determining-the-cache-status-in-ultrastack","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/","title":{"rendered":"Determining the Cache Status in UltraStack"},"content":{"rendered":"\n<p>Caching works in such a way that you may not always think of how it is working when it&#8217;s on.  This is a good thing since the caching function is part of the UltraStack architecture. This article will cover how to determine your cache status using the cURL command.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#curl\">Using Curl<\/a><\/li><li><a href=\"#status-codes\">Cache Status Codes<\/a><\/li><\/ul>\n\n\n\n<p class=\"alert alert-info\">Need a new home for your WordPress site? Check out InMotion&#8217;s <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress Hosting<\/a> solutions for secure, optimized servers that meet your budget needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"curl\">Using Curl to Determine Cache Status<\/h2>\n\n\n\n<p>In order to use CURL, you will need to be logged into your site <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/shared-reseller-ssh\/\">using SSH<\/a>.<\/p>\n\n\n\n<p>In the result below, you would basically be using the command like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -is https:\/\/example.com\/ -A \"Troubleshooting\" | head -14 <\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>HTTP\/1.1 200 OK\nServer: nginx\/1.13.3\nDate: Fri, 21 Jul 2017 16:18:39 GMT\nContent-Type: text\/html; charset=UTF-8\nTransfer-Encoding: chunked\nConnection: keep-alive\nVary: Accept-Encoding\nLink: &lt;https:\/\/example.com\/wp-json\/&gt;; rel=\"https:\/\/api.w.org\/\", &lt;https:\/\/example.com\/&gt;; rel=shortlink\nX-Proxy-Cache: HIT<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"status-codes\">Cache Status Codes<\/h2>\n\n\n\n<p>Below is a list of possible values for the <code>X-Proxy-Cache<\/code> header, and a description of what they mean. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> <code>-<\/code> (<code>X-Proxy-Cache<\/code> header is empty or missing) &#8211; No caching configured for this URI, or the page was requested via a method other than <code>GET<\/code>, <code>HEAD<\/code>, or <code>OPTIONS<\/code>. This means that <code>POST<\/code> requests will always bypass the cache.<\/li><li> <code>HIT<\/code> &#8211; <em>Cache Hit<\/em> &#8211; Nginx found a matching fresh page in the cache and returned it to the visitor.<\/li><li> <code>MISS<\/code> &#8211; <em>Cache Miss<\/em> &#8211; No matching fresh page was \nfound in the cache. Nginx made a request to the origin (Apache, \nPHP-FPM), then cached the resulting page for subsequent requests.<\/li><li> <code>EXPIRED<\/code> &#8211; <em>Cache Expired<\/em> &#8211; Nginx tried to \nretrieve an updated page from the origin (Apache, PHP-FPM), but \nencountered an error, so instead it served an expired page from the \ncache.<\/li><li> <code>UPDATING<\/code> &#8211; <em>Cache Updating<\/em> &#8211; Nginx is currently \nwaiting for a response from the origin to update the cache (from a \nprevious request). In the meantime, Nginx served the visitor the \nexisting (expired) page from the cache. This behavior can be controlled \nvia the <code>cache_lock_enable<\/code> option (enabled by default).<\/li><li> <code>BYPASS<\/code> &#8211; <em>Cache Bypass<\/em> &#8211; This page was forwarded\n directly from the origin without caching due to explicitly defined \nexclusion rules that the customer has configured (or that are a part of \nthe default configuration). Specific paths can be configured via the <code>cache_bypass_paths<\/code> option. Other options, such as <code>bypass_cookies<\/code>, also influence whether or not the request bypassed the cache.<\/li><li> <code>STATIC\/TYPE<\/code> &#8211; <em>Static Content (by type)<\/em> &#8211; This \nasset was served directly by Nginx due to matching the file extension of\n the request URL with a predefined list in the template. This is enabled\n or disabled via the <code>accel_static_content<\/code> option.<\/li><li> <code>STATIC\/PATH<\/code> &#8211; <em>Static Content (by path)<\/em> &#8211; This \nasset was served directly by Nginx due to matching the URI with a list \ndefined by the customer (or part of the default configuration). This is \nconfigured with the <code>static_content_paths<\/code> option.<\/li><\/ul>\n\n\n\n<p>Congratulations, you now know how to find out the cache status using the <strong>CURL<\/strong> command in SSH. Next, learn <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/purging-the-ultrastack-cache-with-cache-manager-in-cpanel\/\"  >How to Purge UltraStack Cache with Cache Manager in cPanel<\/a>.<\/p>\n\n\n\n<p>For even more helpful guides, see our other <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/\">UltraStack tutorials<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Caching works in such a way that you may not always think of how it is working when it&#8217;s on. This is a good thing since the caching function is part of the UltraStack architecture. This article will cover how to determine your cache status using the cURL command. Using Curl Cache Status Codes Need<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4356],"tags":[],"class_list":["post-51634","post","type-post","status-publish","format-standard","hentry","category-ultrastack"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Determine Cache Status with UltraStack | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.\" \/>\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\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Determine Cache Status with UltraStack | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\" \/>\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=\"2019-12-23T16:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-16T19:44:59+00:00\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"Determining the Cache Status in UltraStack\",\"datePublished\":\"2019-12-23T16:30:00+00:00\",\"dateModified\":\"2021-08-16T19:44:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\"},\"wordCount\":467,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"UltraStack\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\",\"name\":\"How to Determine Cache Status with UltraStack | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2019-12-23T16:30:00+00:00\",\"dateModified\":\"2021-08-16T19:44:59+00:00\",\"description\":\"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Determining the Cache Status in UltraStack\"}]},{\"@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\/8d626175dd3b70ee90a172bdb09a460b\",\"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\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Determine Cache Status with UltraStack | InMotion Hosting","description":"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.","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\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/","og_locale":"en_US","og_type":"article","og_title":"How to Determine Cache Status with UltraStack | InMotion Hosting","og_description":"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-12-23T16:30:00+00:00","article_modified_time":"2021-08-16T19:44:59+00:00","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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"Determining the Cache Status in UltraStack","datePublished":"2019-12-23T16:30:00+00:00","dateModified":"2021-08-16T19:44:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/"},"wordCount":467,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["UltraStack"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/","name":"How to Determine Cache Status with UltraStack | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2019-12-23T16:30:00+00:00","dateModified":"2021-08-16T19:44:59+00:00","description":"Learn how to determine cache status using CURL command in SSH. You will also learn about the many different status codes that you may see when looking at your cache.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/determining-the-cache-status-in-ultrastack\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Determining the Cache Status in UltraStack"}]},{"@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\/8d626175dd3b70ee90a172bdb09a460b","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\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4356,"name":"UltraStack","slug":"ultrastack","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/ultrastack\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/51634","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=51634"}],"version-history":[{"count":6,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/51634\/revisions"}],"predecessor-version":[{"id":83067,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/51634\/revisions\/83067"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=51634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=51634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=51634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}