{"id":137648,"date":"2024-08-19T11:03:49","date_gmt":"2024-08-19T15:03:49","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=137648"},"modified":"2024-11-06T11:14:18","modified_gmt":"2024-11-06T16:14:18","slug":"alwayscached-extension","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/alwayscached-extension\/","title":{"rendered":"How to Use W3 Total Cache Pro Always Cached Feature"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>The Always Cached feature enhances the Page Cache by blocking immediate flush actions and queuing them for manual or scheduled processing via WP cron. This optimization is especially beneficial for high-traffic sites with frequent content updates, as it prevents cache modifications during peak traffic times, thus improving performance.\r\n\r\n<\/p><h2 id=\"example-without-and-with-always-cached\">Example: Without and With Always Cached<\/h2>\r\n\r\n<h4 id=\"without-always-cached\">Without Always Cached:<\/h4>\r\n\r\n<ol>\r\n    <li>You Update Your Homepage: As soon as you make an update, the cache for the homepage is cleared.<\/li>\r\n    <li>Multiple Visitors Access the Homepage: Let&rsquo;s say 10 people visit your homepage simultaneously right after the update.<\/li>\r\n    <li>Cache Rebuild Conflicts: Each visit triggers the site to rebuild and save the cached page. This simultaneous action can cause delays, conflicts, and increased server load, potentially slowing down your site or causing errors.<\/li>\r\n<\/ol>\r\n\r\n<h4 id=\"with-always-cached-enabled\">With Always Cached Enabled:<\/h4>\r\n\r\n<ol>\r\n    <li>You Update Your Homepage: The update is made, but the existing cache file is kept in place.<\/li>\r\n    <li>Queueing the Update: The changes are added to a queue to be processed by WP cron later.<\/li>\r\n    <li>Serving Cached Content: When 10 people visit your homepage simultaneously after the update, they are served the existing cached version, preventing immediate rebuild conflicts.<\/li>\r\n    <li>Scheduled Cache Update: WP cron processes the queued updates at scheduled intervals, ensuring that only one update happens at a time, which improves performance and stability.<\/li>\r\n<\/ol>\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<h2 id=\"enabling-always-cached\">Enabling Always Cached<\/h2>\r\nTo enable the Always Cached feature:\r\n<ol>\r\n \t<li>Navigate to <strong>Performance &gt; Extensions<\/strong> in your WordPress admin panel.<\/li>\r\n \t<li>Enable the <strong>Always Cached<\/strong> extension.<\/li>\r\n<\/ol>\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-137651\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable.png\" alt=\"\" width=\"1204\" height=\"265\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable.png 1204w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable-300x66.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable-1024x225.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-enable-768x169.png 768w\" sizes=\"auto, (max-width: 1204px) 100vw, 1204px\" \/><\/a>\r\n\r\n\r\n<h2 id=\"configuring-always-cached\">Configuring Always Cached<\/h2>\r\nTo configure the Always Cached feature:\r\n<ol>\r\n \t<li>Click the <strong>Settings<\/strong> link from the extensions page or navigate to the <strong>Page Cache Queue<\/strong> page via the left sidebar menu.<\/li>\r\n<\/ol>\r\n<h4 id=\"queue-manager\">Queue Manager<\/h4>\r\nThe first section of the Page Cache Queue page is the Queue Manager, where you can:\r\n<ul>\r\n \t<li>Review all items in the queue.<\/li>\r\n \t<li>Manually process individual entries or all entries using the <strong>Regenerate All<\/strong> button.<\/li>\r\n \t<li>Clear the queue without processing.<\/li>\r\n<\/ul>\r\nQueue entries display up to 15 items per page, and a search field is available for easy navigation.\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo.png\" alt=\"\" width=\"1080\" height=\"717\" class=\"alignnone size-full wp-image-147730\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo.png 1080w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo-300x199.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo-1024x680.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-qo-768x510.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/a>\r\n\r\n<h4 id=\"exclusions\">Exclusions<\/h4>\r\nIn the Exclusions section, you can define URLs that should be excluded from the Always Cached queue. Any pages\/posts that match entries in this section will be handled normally by W3 Total Cache. In other words, the cache entry will be purged when updating a page\/post or when purging all caches or the page cache.\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-exclusions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full 144577\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/alwayscached-exclusions.png\" alt=\"\" width=\"1205\" height=\"202\"><\/a>\r\n\r\n<h4 id=\"cron-configuration\">Cron Configuration<\/h4>\r\nIn the Cron section, you can enable a WP Cron event to process the queue at a given time and interval. The <strong>Start Time<\/strong> selection controls when the event will start and the <strong>Interval<\/strong> controls how often the event will occur. Intervals include:\r\n<ul>\r\n \t<li>Hourly<\/li>\r\n \t<li>Twice Daily<\/li>\r\n \t<li>Daily<\/li>\r\n \t<li>Weekly<\/li>\r\n<\/ul>\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron.png\" alt=\"\" width=\"1204\" height=\"373\" class=\"alignnone size-full wp-image-147727\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron.png 1204w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron-300x93.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron-1024x317.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-cron-768x238.png 768w\" sizes=\"auto, (max-width: 1204px) 100vw, 1204px\" \/><\/a>\r\n\r\n<h4 id=\"purge-all-behavior\">Purge All Behavior<\/h4>\r\nBy default, the &ldquo;Flush All&rdquo; action clears all cache entries and existing queue items. Enabling the <strong>Queue Purge All Requests<\/strong> setting changes this behavior to add all pages\/posts to the queue instead. Additional settings allow you to refine what entries are added to the queue on a <strong>Queue Purge All Requests<\/strong>:\r\n<ul>\r\n \t<li>Add the homepage to the queue.<\/li>\r\n \t<li>Control the number of recent pages\/posts added.<\/li>\r\n<\/ul>\r\nIf the <strong>Number of Latest Posts<\/strong> or <strong>Number of Latest Pages<\/strong> fields are left blank or set to 0, no recent pages\/posts will be queued.\r\n\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall.png\" alt=\"\" width=\"1205\" height=\"519\" class=\"alignnone size-full wp-image-147729\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall.png 1205w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall-300x129.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall-1024x441.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/08\/ac-flushall-768x331.png 768w\" sizes=\"auto, (max-width: 1205px) 100vw, 1205px\" \/><\/a><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>The Always Cached feature enhances the Page Cache by blocking immediate flush actions and queuing them for manual or scheduled processing via WP cron. This optimization is especially beneficial for high-traffic sites with frequent content updates, as it prevents cache modifications during peak traffic times, thus improving performance. Example: Without and With Always Cached Without [&hellip;]<\/p>\n","protected":false},"author":1307,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[967,692],"tags":[],"class_list":["post-137648","post","type-post","status-publish","format-standard","hentry","category-extensions","category-w3-total-cache"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/137648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1307"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=137648"}],"version-history":[{"count":8,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/137648\/revisions"}],"predecessor-version":[{"id":147733,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/137648\/revisions\/147733"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=137648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=137648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=137648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}