BoldGrid / w3-total-cache

GNU General Public License v2.0
153 stars 86 forks source link

WP cron option to purge caches on schedule #971

Closed jacobd91 closed 3 weeks ago

jacobd91 commented 1 month ago

This PR simply adds a new option on the General settings page and on the advanced setting pages for Page, DB, Minify, and Object caches. This new option is it's own meta box containing an enable checkbox and a time and interval selector to define when the WP cron event should be run and on what interval. These cron events simply call a flush on the relevant cache

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 640 lines in your changes missing coverage. Please review.

Project coverage is 0.89%. Comparing base (41ab929) to head (798cfd5).

Files with missing lines Patch % Lines
inc/options/dbcache.php 0.00% 67 Missing :warning:
inc/options/minify.php 0.00% 67 Missing :warning:
inc/options/objectcache.php 0.00% 67 Missing :warning:
inc/options/pgcache.php 0.00% 67 Missing :warning:
inc/options/general.php 0.00% 50 Missing :warning:
PgCache_Environment.php 0.00% 35 Missing :warning:
Minify_Environment.php 0.00% 32 Missing :warning:
ObjectCache_Environment.php 0.00% 29 Missing :warning:
DbCache_Environment.php 0.00% 26 Missing :warning:
DbCache_Plugin_Admin.php 0.00% 22 Missing :warning:
... and 12 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #971 +/- ## =========================================== - Coverage 0.90% 0.89% -0.01% - Complexity 19609 19697 +88 =========================================== Files 679 679 Lines 98868 99358 +490 =========================================== Hits 893 893 - Misses 97975 98465 +490 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.