{"id":145140,"date":"2024-11-14T11:29:32","date_gmt":"2024-11-14T16:29:32","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=145140"},"modified":"2024-11-15T13:16:50","modified_gmt":"2024-11-15T18:16:50","slug":"schedule-cache-purges","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/schedule-cache-purges\/","title":{"rendered":"Scheduling Purges of Caches via WP-Cron in W3 Total Cache"},"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><div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<p class=\"\">In the latest update of W3 Total Cache (2.8.0), we&rsquo;ve introduced new options for scheduling automatic cache purges via WP-Cron, providing more control over how and when your caches are cleared. These new settings allow users to enable WP-Cron to handle the purging of various caches and customize the exact time and interval at which purges occur.<\/p>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<div class=\"row bg-editor-hr-wrap\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<hr>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 id=\"new-wp-cron-settings\">New WP-Cron Settings<\/h2>\n<p class=\"\">You can now find these settings in several locations within the plugin&rsquo;s interface, depending on the type of cache you wish to manage:<\/p>\n<ul class=\"\">\n<li><strong>Purge All Caches Via A Single Scheduled Cron Job<\/strong>\n<pre class=\"\">Performance &rarr; General Settings &rarr; Purge Via WP-Cron (all caches)\r\nControl purging for all caches from a centralized location.\r\n<\/pre>\n<\/li>\n<li><strong>Purge Individual Caches Via Separate Cron Job(s)<\/strong>\n<pre>Performance &rarr; Page Cache &rarr; Purge Via WP-Cron (page cache)\r\nSchedule purges specifically for the page cache.\r\n\r\nPerformance &rarr; Database Cache &rarr; Purge Via WP-Cron (database cache)\r\nSchedule purges specifically for the database cache.\r\n\r\nPerformance &rarr; Minify &rarr; Purge Via WP-Cron (minify cache)\r\nSchedule purges specifically for the minify cache.\r\n\r\nPerformance &rarr; Object Cache &rarr; Purge Via WP-Cron (object cache)\r\nSchedule purges specifically for the object cache.\r\n<\/pre>\n<p>Please note that the Minify cache affects the Page cache. If the Minify cache is purged while the Page cache is enabled, the changes won&rsquo;t be reflected on your site until the Page cache is also purged.<\/p><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<div class=\"row bg-editor-hr-wrap\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<hr>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 class=\"\" id=\"how-it-works\">How It Works<\/h2>\n<p>For each cache type, a new metabox has been added to the respective settings page, allowing you to enable and configure WP-Cron purging for that cache.<\/p>\n<ul class=\"\">\n<li>Enable WP Cron Event In the metabox, you&rsquo;ll find a checkbox labeled &ldquo;Enable WP Cron Event&rdquo;. Checking this option will activate WP-Cron to periodically purge the relevant cache.<\/li>\n<li>Start Time Once WP-Cron purging is enabled, you can specify the initial Start Time for when the first purge should take place. This allows you to control the exact time of day the purge starts, which can be useful if you want to avoid high-traffic periods or optimize the timing based on server performance.<\/li>\n<li>Interval After selecting the start time, you can also define how frequently the purge event should occur by choosing an Interval. Options include hourly, daily, twice daily, and more, depending on your site&rsquo;s needs.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-147719\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush.png\" alt=\"\" width=\"1207\" height=\"312\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush.png 1207w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush-300x78.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush-1024x265.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/11\/cron-flush-768x199.png 768w\" sizes=\"auto, (max-width: 1207px) 100vw, 1207px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<div class=\"row bg-editor-hr-wrap\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<hr>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 id=\"where-and-why-you-might-use-these-features\">Where and Why You Might Use These Features<\/h2>\n<p>These settings provide flexibility and automation for managing cache purges, offering several benefits:<\/p>\n<ul>\n<li>Avoiding High-Traffic Periods: By scheduling the purge to occur during low-traffic periods, you can minimize any potential performance impact during peak times.<\/li>\n<li>Granular Control: Whether you&rsquo;re managing a small blog or a high-traffic site, these options allow you to tailor cache purging to the specific needs of your site&rsquo;s performance.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<div class=\"row bg-editor-hr-wrap\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<hr>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 id=\"use-case-scenarios\">Use Case Scenarios<\/h2>\n<ul>\n<li>Busy E-commerce Sites: For e-commerce sites, purging caches during off-peak hours (e.g., early morning) can prevent any potential slowdowns during high-traffic sales events or campaigns.<\/li>\n<li>Resource-Constrained Sites: For sites on shared hosting, scheduling purges during less busy times ensures that server resources are used efficiently and avoids performance issues during peak times.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<div class=\"row bg-editor-hr-wrap\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<hr>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 id=\"final-thoughts\">Final Thoughts<\/h2>\n<p>The addition of WP-Cron scheduling for cache purges offers enhanced control, flexibility, and automation for W3 Total Cache users. Whether you&rsquo;re looking to fine-tune your caching strategy or simply automate a key aspect of site maintenance, these new options make it easier than ever to optimize your site for performance.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>In the latest update of W3 Total Cache (2.8.0), we&rsquo;ve introduced new options for scheduling automatic cache purges via WP-Cron, providing more control over how and when your caches are cleared. These new settings allow users to enable WP-Cron to handle the purging of various caches and customize the exact time and interval at which [&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":[740,692],"tags":[],"class_list":["post-145140","post","type-post","status-publish","format-standard","hentry","category-page-cache","category-w3-total-cache"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/145140","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=145140"}],"version-history":[{"count":13,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/145140\/revisions"}],"predecessor-version":[{"id":148789,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/145140\/revisions\/148789"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=145140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=145140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=145140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}