{"id":1318273,"date":"2019-07-02T09:40:43","date_gmt":"2019-07-02T07:40:43","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1318273"},"modified":"2023-05-10T15:15:01","modified_gmt":"2023-05-10T13:15:01","slug":"calculate-hit-and-miss-ratios","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/","title":{"rendered":"What are Hit and Miss Ratios?"},"content":{"rendered":"<p>Hit and miss ratios in cache memories are metrics that can help you determine whether your cache is working in tip top shape.<\/p><p>They\u2019re often displayed among the settings of <a href=\"https:\/\/wp-rocket.me\/blog\/cdn\/\">Content Delivery Network<\/a> (CDN) caches, for example.<\/p><p>Here are more details on hit and miss ratios in caches, and how to calculate them and similar metrics to check your cache\u2019s performance.<\/p><h2 class=\"wp-block-heading\">What is a Cache?<\/h2><p>Before digging into hit and miss ratios in caches, it\u2019s imperative to understand the meaning of a cache, and caching.<\/p><p>A cache is a high speed memory that temporarily saves data and content from a website, for example, so that the next time the site is visited, that content is displayed much faster. It helps a web page load much faster for a better user experience.<\/p><p>When data and content gets stored into a cache memory, it\u2019s referred to as \u201ccaching.\u201d<\/p><p>For details, check out <a href=\"https:\/\/wp-rocket.me\/blog\/wordpress-page-caching-explained-in-plain-english\/\">Caching for WordPress, Explained in Plain English<\/a>.<\/p><h2 class=\"wp-block-heading\">What are Cache Hit and Misses?<\/h2><p>Similarly to know what caching is, it\u2019s also essential to understand what hit and miss ratios are as well as miss penalties. That way, it\u2019s easier to know what hit and miss ratios in caches are and why they\u2019re important in helping determine your cache\u2019s performance.<\/p><p>A cache hit refers to the situation wherein the cache is able to successfully retrieve data and content that was saved to it, and then display it on a web page.<\/p><p>A cache miss occurs in the opposite situation. The site requests the content from the cache, but after searching for it, the cache determines that content wasn\u2019t saved. That\u2019s when the cache saves the content so it\u2019s available the next time it\u2019s requested.<\/p><p>When a cache miss occurs, it takes up extra time and server resources which ends up slowing down your page speed load times.<\/p><p>One cache miss isn\u2019t a big deal, but the more that happens, the worse it is for your server\u2019s resources, and page load times.<\/p><p>This is where miss penalties come into the picture.<\/p><p>This delay that occurs in your page load times due to cache misses are known as miss penalties.<\/p><p>You can check out <a href=\"https:\/\/wp-rocket.me\/blog\/cache-miss-vs-cache-hit\/\">Cache Miss vs Cache Hit: What\u2019s the Difference?<\/a> for details.<\/p><h2 class=\"wp-block-heading\">Hit and Miss Ratios in Caches<\/h2><p>Hit and miss ratios in caches have a lot to do with cache hits and misses.<\/p><p>A hit ratio is a calculation of cache hits, and comparing them with how many total content requests were received.<\/p><p>A miss ratio is the flip side of this where the cache misses are calculated and compared with the total number of content requests that were received.<\/p><h3 class=\"wp-block-heading\">The Importance of Hit and Miss Ratios in Caches<\/h3><p>Hit and miss ratios are significant because, as mentioned earlier, they can give you a good idea of how well your cache is performing, and if its performance is optimized.<\/p><p>If you have a high hit ratio and low miss ratio, that means your cache is operating well. It also means that content is likely being retrieved from the cache quickly, and page load times are also as fast as possible for end users.<\/p><p>If the opposite is true, and you\u2019re able to calculate that your cache\u2019s miss ratio is high, and you hit ratio is low, then your cache isn\u2019t running as well as it could be, and your users are seeing slower page load times than they should be seeing.<\/p><p>Knowing this, you can troubleshoot the issue to fix it up, and get your cache running more smoothly.<\/p><p>For example, if you have a high miss ratio, an option could be expanding your cache since the larger it is, the more data it can hold, and the less cache misses you should have as a result.<\/p><p>But, how do you calculate hit and miss ratios in caches? <\/p><p>Many CDNs display cache hits, misses, and the total number of <a href=\"https:\/\/wp-rocket.me\/blog\/reduce-http-requests-speed-wordpress-site\/\">content requests<\/a>. If they also show other metrics such as hit and miss ratios, then you now know what they mean, and you can start troubleshooting, if necessary.<\/p><p>On the other hand, if you don\u2019t have access to these ratios, you calculate them with the number of cache hits, misses, and total cache content accesses.<\/p><div id=\"om-olkrjzfbhlynbs54rv6z-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'olkrjzfbhlynbs54rv6z')<\/script><h3 class=\"wp-block-heading\">How to Calculate a Hit Ratio<\/h3><p>To calculate a hit ratio, divide the number of cache hits with the sum of the number of cache hits, and the number of cache misses.<\/p><p>For example, if you have 51 cache hits and three misses over a period of time, then that would mean you would divide 51 by 54. The result would be a hit ratio of 0.944.<\/p><p>You can also choose to express this as a percentage by multiplying the end result by 100.<\/p><p>In the example above, the 0.944 result would be multiplied by 100 to get a hit ratio of 94.4%.<\/p><p>Alternatively, you can find out the hit ratio if you already know the miss ratio. Then, you can subtract one by the miss ratio.<\/p><p>You can do this because the hit and miss ratios equal to one.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-hit-ratio.png\" alt=\"Formula to calculate hit ratios\" class=\"wp-image-1318275\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-hit-ratio.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-hit-ratio-300x150.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-hit-ratio-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\"><em>You can calculate hit ratios with these equations.<\/em><\/figcaption><\/figure><h3 class=\"wp-block-heading\">How to Calculate a Miss Ratio<\/h3><p>You can also calculate a miss ratio by dividing the number of misses with the total number of content requests.<\/p><p>For example, if you look over a period of time and find that the misses your cache experienced was11, and the total number of content requests was 48, you would divide 11 by 48 to get a miss ratio of 0.229.<\/p><p>Similar to hit ratios, you can also calculate a miss ratio if you already know the hit ratio. In that case, you can calculate it by subtracting one from the hit ratio.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-miss-ratio.png\" alt=\"Formula to calculate miss ratios\" class=\"wp-image-1318281\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-miss-ratio.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-miss-ratio-300x150.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-miss-ratio-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\"><em>Similar to hit ratios, you can also calculate miss ratios with these equations.<\/em><\/figcaption><\/figure><h2 class=\"wp-block-heading\">What\u2019s the Ideal Hit and Miss Ratios in Caches?<\/h2><p>Generally speaking, for most sites, a hit ratio of 95-99%, and a miss ratio of one to five percent is ideal.<\/p><p>Keep in mind that every site is different so these aren\u2019t one-size-fits-all numbers.<\/p><p>It may also be important to note that in terms of CDN caches, a high hit ratio doesn\u2019t necessarily mean that your site\u2019s end users are always getting fast load times.<\/p><p>This is because a cache hit doesn\u2019t account for <em>when<\/em> content was successfully retrieved from the cache. If content was loaded from the cache, but from an edge server that was far away from the end user, it would still count as a cache hit, except the user would see slower page load times than if the edge server used was closer to them.<\/p><p>For details, check out <a href=\"https:\/\/wp-rocket.me\/blog\/cdn\/\">How to Choose a CDN? Discover the Best CDN Services for WordPress<\/a>.<\/p><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h3 class=\"wp-block-heading\">Finding the Average Memory Access Time<\/h3><p>To solve this dilemma, you can calculate the average memory access time to not only know how many cache hits are happening, but also how fast they\u2019re happening as well.<\/p><p>That way, you can further understand where the issue may be if you\u2019re finding you\u2019re having a high hit ratio, but users are still complaining about a slow-loading website.<\/p><p>To calculate the average memory access time, add the hit time and the miss ratio, and multiply it by the miss penalty.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"250\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-average-memory-access-time.png\" alt=\"Equation for average memory access time\" class=\"wp-image-1318288\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-average-memory-access-time.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-average-memory-access-time-300x94.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-calculate-average-memory-access-time-768x240.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\"><em>This equation will result in the average memory access time.<\/em><\/figcaption><\/figure><h2 class=\"wp-block-heading\">In Conclusion<\/h2><p>Calculating the hit and miss ratios in cache memories as described above can help you better understand how well your cache is performing.<\/p><p>That way, you can help determine if your site\u2019s page load times are consistently fast for your users. If they\u2019re not, you\u2019ll be able to take the next steps to troubleshoot, and fix any issues.<\/p><p><em>Have you ever calculated hit and miss ratios in cache memories? Are there other areas you\u2019re unclear about? Share your experience and thoughts in the comments below.<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.<\/p>\n","protected":false},"author":43576,"featured_media":1318313,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1318273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What are Hit and Miss Ratios? Learn how to calculate them!<\/title>\n<meta name=\"description\" content=\"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are Hit and Miss Ratios? Learn how to calculate them!\" \/>\n<meta property=\"og:description\" content=\"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-02T07:40:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-10T13:15:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jenni McKinnon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jenni McKinnon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\"},\"author\":{\"name\":\"Jenni McKinnon\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2\"},\"headline\":\"What are Hit and Miss Ratios?\",\"datePublished\":\"2019-07-02T07:40:43+00:00\",\"dateModified\":\"2023-05-10T13:15:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\"},\"wordCount\":1330,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\",\"name\":\"What are Hit and Miss Ratios? Learn how to calculate them!\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png\",\"datePublished\":\"2019-07-02T07:40:43+00:00\",\"dateModified\":\"2023-05-10T13:15:01+00:00\",\"description\":\"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png\",\"width\":1100,\"height\":460,\"caption\":\"How to calculate cache his and cache miss?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What are Hit and Miss Ratios?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2\",\"name\":\"Jenni McKinnon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g\",\"caption\":\"Jenni McKinnon\"},\"description\":\"A copywriter, copy editor, web developer, consultant, course instructor and founder of WP Pros(e), Jenni McKinnon has spent the past 15 years developing websites and almost as long for WordPress. A self-described WordPress nerd, she enjoys watching The Simpsons and names her test sites after references from the show.\",\"sameAs\":[\"https:\/\/wpprose.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are Hit and Miss Ratios? Learn how to calculate them!","description":"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.","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:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/","og_locale":"en_US","og_type":"article","og_title":"What are Hit and Miss Ratios? Learn how to calculate them!","og_description":"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.","og_url":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-07-02T07:40:43+00:00","article_modified_time":"2023-05-10T13:15:01+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png","type":"image\/png"}],"author":"Jenni McKinnon","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Jenni McKinnon","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/"},"author":{"name":"Jenni McKinnon","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2"},"headline":"What are Hit and Miss Ratios?","datePublished":"2019-07-02T07:40:43+00:00","dateModified":"2023-05-10T13:15:01+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/"},"wordCount":1330,"commentCount":5,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/","url":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/","name":"What are Hit and Miss Ratios? Learn how to calculate them!","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png","datePublished":"2019-07-02T07:40:43+00:00","dateModified":"2023-05-10T13:15:01+00:00","description":"Did you know you can find out how well your cache is performing by calculating hit and miss ratios in caches? Here\u2019s how to do it.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-hit-and-miss-ratio-in-cache.png","width":1100,"height":460,"caption":"How to calculate cache his and cache miss?"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/calculate-hit-and-miss-ratios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"What are Hit and Miss Ratios?"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/c424c8db717ce33f9f70867f0a962ac2","name":"Jenni McKinnon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a368446f4bf1880c0e5a8cb742aed12?s=96&d=mm&r=g","caption":"Jenni McKinnon"},"description":"A copywriter, copy editor, web developer, consultant, course instructor and founder of WP Pros(e), Jenni McKinnon has spent the past 15 years developing websites and almost as long for WordPress. A self-described WordPress nerd, she enjoys watching The Simpsons and names her test sites after references from the show.","sameAs":["https:\/\/wpprose.com"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1318273"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/43576"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1318273"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1318273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1318313"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1318273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1318273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1318273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}