-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add UI option for cache cleanup schedule; See: websharks/zencache#472 #180
Conversation
@kristineds Nice work! Here's a small requested change: The description currently reads: "If you have an extremely large site with a lower expiration time, %1$s can be told to set a Cache Cleanup Schedule to prevent the cache files from slowing down your server via WP Cron at a I suggest we tweak that as follows: "If you have an extremely large site and you set a lower cache expiration time, expired cache files can build up more quickly. By default, %1$s cleans up expired cache files via WP Cron at an Note that I removed the italic text; I don't think that's necessary. |
@kristineds Could you also please move this new section above the section titled Disable Cache Expiration If Server Load Average is High? The new Cache Cleanup Schedule seems like it should come right after the Automatic Expiration Time section, as the Load Average section is far less likely to be used by a site owner. |
@kristineds Can you please remove the italic Also, please change "and you set a lower cache expiration time" to "and you lower the default Cache Expiration Time of |
@raamdev Latest commit submitted. cc @jaswsinc d702eeb
|
Some minor tweaks from me in 0d2357b
|
@raamdev Would it be a good idea to make this a select menu of predefined options? That would eliminate the need for the additional Tip below this field, and we could pull the list of available options using: https://codex.wordpress.org/Function_Reference/wp_get_schedules My feeling is that having a select menu would make this more user-friendly. That way, what you select is going to work, no question. The default CRON schedules are: |
@jaswsinc writes...
Yes! Great idea. That would be much better here, especially given the fact that some site owners may have used another plugin to create their own WP Cron schedules and if we build a dynamic list using |
@kristineds writes...
Looks great. Thank you! 😄 @jaswsinc writes...
Awesome. Thanks for those. |
@raamdev Please review when you get a moment. Thanks :-) |
Cool. Yeah, I had some unexpected results like that also. If you can merge this into the dev branch, along with step 1 also, we can test both of those together. I think testing this branch by itself as-is, is problematic, because it doesn't include the new option key internally, which goes with this UI enhancement. |
Ah, that makes sense. I had assumed this branch did include those changes. :-) Thanks. I'll merge these in shortly. |
Merged. Thank you @kristineds and @jaswsinc! :-) |
Cool @jaswsinc! Love those dropdown menu! Definitely more user-friendly than typing it in 👍 |
Cool. Glad to hear it! :-) |
Add UI option for cache cleanup schedule;
purge_cache
CRON Should Run Every HourSee: wpsharks/comet-cache#472