{"id":34580,"date":"2023-08-14T05:35:34","date_gmt":"2023-08-14T05:35:34","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/"},"modified":"2024-12-10T05:39:16","modified_gmt":"2024-12-10T05:39:16","slug":"how-to-know-when-a-page-is-cached","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/how-to-know-when-a-page-is-cached\/","title":{"rendered":"How to know when a page is cached and how to diagnose it if it isn&#8217;t"},"content":{"rendered":"<p>Caching plays a crucial role in enhancing your website&#8217;s speed and overall performance. It&#8217;s vital to ascertain whether your pages are being cached correctly. If they aren&#8217;t, you need to know how to diagnose and rectify the issue. This guide walks you through identifying, diagnosing, and resolving caching issues effectively.<\/p>\n<h2><strong>Identifying if a Page is Cached<\/strong><\/h2>\n<h3><strong>Using Source Code:<\/strong><\/h3>\n<ul>\n<li>Ensure you&#8217;re <strong>logged out<\/strong> of WordPress or browse in <strong>incognito mode<\/strong>.<\/li>\n<li>Navigate to the desired page.<\/li>\n<li><strong>Right-click<\/strong> on the page and select <strong>&#8216;View Page Source&#8217;<\/strong>.<\/li>\n<li>In the source code, search for the following line:<br \/>\n<code>&lt;!-- Cached &amp; Optimized by Staq (https:\/\/www.wpstaq.com): &lt;DATE&gt; GMT --&gt;<\/code><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.png\" alt=\"Cached HTML Status\" \/><\/p>\n<h3><strong>Verifying with Redis Object Cache:<\/strong><\/h3>\n<ul>\n<li>Check the Redis Object Cache status by navigating to the Redis Object Cache page inside Staq Panel for the site. It appears under Database. Flush the cache to see if that resolves the issue.<\/li>\n<li>If Redis Object Cache is disabled, no caching is applied to logged-in users. This confirms caching issues are unrelated to logged-in user behavior.<\/li>\n<\/ul>\n<h3><strong>Using Staq Next-Gen CDN:<\/strong><\/h3>\n<ul>\n<li>Verify if your website is being preloaded from <strong>AWS Cloudfront<\/strong>. Refer to the guide:<br \/>\n<a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/is-my-site-loading-from-aws-cloudfront\/\" target=\"_blank\" rel=\"noopener\">Is My Site Loading from AWS Cloudfront?<\/a><\/li>\n<\/ul>\n<h2><strong>Diagnosing Why a Page Isn&#8217;t Cached<\/strong><\/h2>\n<h3><strong>Query Strings<\/strong><\/h3>\n<p>If your page URL contains a query string, you\u2019ll need to configure it for caching. Refer to our guide:<br \/>\n<a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-cache-a-url-with-a-query-string\/\" target=\"_blank\" rel=\"noopener\">How to Cache a URL with a Query String<\/a>.<\/p>\n<h3><strong>Page-Specific Cache Settings in WordPress<\/strong><\/h3>\n<p>Navigate to the page edit screen inside WordPress and check if caching is enabled or disabled specifically for that page:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/06\/disable-cache-page-1024x312.png\" alt=\"Disable Cache for Page\" \/><\/p>\n<h3><strong>Staq Hosting Settings<\/strong><\/h3>\n<p>Go to <strong>Staq Hosting &gt; Options<\/strong> and review the <strong>&#8220;Disable caching for specific pages&#8221;<\/strong> section to verify if the page is listed:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/06\/centralize-cache-1024x788.png\" alt=\"Disable Caching for Specific Pages\" \/><\/p>\n<h3><strong>Testing with Optimizer and Caching Features<\/strong><\/h3>\n<p>If caching issues persist, follow these steps:<\/p>\n<ol>\n<li>Disable Redis Object Cache and check if the issue is resolved.<\/li>\n<li>If the issue remains, go to <strong>Staq Hosting &gt; Optimizer<\/strong> and disable specific features:\n<ul>\n<li>Test the page in <strong>Incognito Mode<\/strong> after disabling each feature (e.g., delay or defer JS, CSS minification).<\/li>\n<li>If disabling Optimizer features resolves the issue, isolate which feature caused the conflict and adjust settings accordingly.<\/li>\n<\/ul>\n<\/li>\n<li>If disabling the Optimizer does not resolve the issue, try disabling caching entirely. If this works, re-enable caching and adjust Optimizer settings to identify the root cause.<\/li>\n<\/ol>\n<h3><strong>Other Considerations<\/strong><\/h3>\n<p>If the page requires a password, ensure the correct password is used when testing.<\/p>\n<h2><strong>Final Thoughts<\/strong><\/h2>\n<p>Caching is pivotal for your site&#8217;s optimal performance. Regularly verify if your pages are cached and, if not, diagnose the cause promptly. By following the above steps, you can identify and resolve caching issues efficiently, ensuring your site delivers the best experience possible for your visitors.<\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-34580","knowledgebase","type-knowledgebase","status-publish","hentry","categories-caching-diagnose"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to know when a page is cached and how to diagnose it if it isn&#039;t - 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\/how-to-know-when-a-page-is-cached\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to know when a page is cached and how to diagnose it if it isn&#039;t - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Caching plays a crucial role in enhancing your website&#8217;s speed and overall performance. It&#8217;s vital to ascertain whether your pages are being cached correctly. If they aren&#8217;t, you need to know how to diagnose and rectify the issue. This guide walks you through identifying, diagnosing, and resolving caching issues effectively. Identifying if a Page is&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/\" \/>\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-12-10T05:39:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/\",\"name\":\"How to know when a page is cached and how to diagnose it if it isn't - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cached-html-status.png\",\"datePublished\":\"2023-08-14T05:35:34+00:00\",\"dateModified\":\"2024-12-10T05:39:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cached-html-status.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cached-html-status.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-know-when-a-page-is-cached\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to know when a page is cached and how to diagnose it if it isn&#8217;t\"}]},{\"@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-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@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":"How to know when a page is cached and how to diagnose it if it isn't - 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\/how-to-know-when-a-page-is-cached\/","og_locale":"en_US","og_type":"article","og_title":"How to know when a page is cached and how to diagnose it if it isn't - Managed Hosting Platform for WordPress","og_description":"Caching plays a crucial role in enhancing your website&#8217;s speed and overall performance. It&#8217;s vital to ascertain whether your pages are being cached correctly. If they aren&#8217;t, you need to know how to diagnose and rectify the issue. This guide walks you through identifying, diagnosing, and resolving caching issues effectively. Identifying if a Page is&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-12-10T05:39:16+00:00","og_image":[{"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/","name":"How to know when a page is cached and how to diagnose it if it isn't - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.png","datePublished":"2023-08-14T05:35:34+00:00","dateModified":"2024-12-10T05:39:16+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/"]}]},{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/cached-html-status.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-know-when-a-page-is-cached\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to know when a page is cached and how to diagnose it if it isn&#8217;t"}]},{"@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-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@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\/sg\/wp-json\/wp\/v2\/knowledgebase\/34580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=34580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}