-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
purge_cache
CRON Should Run Every Hour
#472
Comments
Great idea! I've marked this as |
@jaswsinc Is there any reason we can't make this a configurable option? I.e., make the default 1 hour but allow a site owner to override that and specify an interval? |
We can make it configurable, yes. I don't see any problem with that. However, it does need to be on a schedule that is either already registered with WP-Cron, or that we add via filters. |
Next Actions (Step 1 of 2)
|
Next Actions (Step 2 of 2 — On Deck)
Note: The above instructions for Step 2 are rather vague. If you're able, attempt step 2 right away. Otherwise, once step 1 is complete hit me on Slack for a more complete set of Step 2 instructions. |
Assigning this to @kristineds :-) |
Related issue (#408) that we could tackle once this is done. |
@jaswsinc @kristineds It appears the option for this got added to the Auto-Cache Engine section of the UI, however from what I can tell this is not related to the Auto-Cache Engine but rather to Cache Expiration and therefore belongs in ZenCache → Plugin Options → Directory / Expiration Time. The description for this option also needs to be updated to remove any mention of the Auto-Cache Engine. |
@raamdev @jaswsinc Submitted PRs for Steps 1 and 2 (updated version) |
@kristineds @jaswsinc Also noting that the following text in Cache Expiration Time needs to be updated to reflect the new hourly schedule (it currently says "once daily", it should now say "once per hour"):
|
@raamdev @jaswsinc That has been updated as part of the latest commit: wpsharks/comet-cache-pro@d702eeb |
Next Pro Release Changelog:
|
ZenCache Pro v151220 has been released and includes changes worked on as part of this GitHub Issue. See the release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#472). |
The
zencache\plugin::purge_cache()
method runs once daily (attached to WP Cron), in order to automatically cleanup expired/stale cache files. However, on a extrememly large site with a lower expiration time (to save disk space) it would be better if this routine ran hourly. That way an entire day has not gone by before ZenCache gets around to doing the cleanup; i.e., running hourly would make ZenCache smarter when configured in certain ways.Referencing this internal ticket:
https://websharks.zendesk.com/agent/tickets/6002
The text was updated successfully, but these errors were encountered: