Opened 5 weeks ago
Closed 5 weeks ago
#62802 closed feature request (wontfix)
Set a daily time for installing (not downloading) WordPress and plugin/theme updates
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description
Hello. I would like WordPress to have a setting to set the daily time at which updates are applied/installed. This because I want to avoid the WordPress updates to be installed at the same time my server reboots (either manual or automatic) after applying updates to the server. I fear this might break my WordPress site. Is this fear justified? Can server reboots during WordPress updates break WordPress?
I understand that there has not been a setting added to set the time of downloads. This to prevent the WordPress server from being DDOS’ed at specific (round) times. But a setting for when updates are applied wouldn’t hurt right?
Change History (4)
#2
@
5 weeks ago
Hey @josvlaar, Thank you for your suggestion.
Let me assure you that WordPress's automatic update system already handles these scenarios safely.
The update process includes built-in safeguards. This means updates are transactional and they either complete fully or rollback. Even if interrupted (including by server reboot), WordPress will either complete the update on the next run or restore the previous state. The maintenance mode prevents any inconsistent states during updates.
If you still want to control update timing, you can use plugins that have these functionalities or filter manually to modify the update schedules.
And of course, you always have the option to disable automatic updates and proceed manually for maximum control.
Let me know if you have any other concerns.
#3
@
5 weeks ago
hi @josvlaar,
it is possible for a server reboot in the middle of an update could break a site. For instance, while a plugin is being updated, the site is put into maintenance mode, the old version of plugin is deleted, and then the new version of the plugin is installed. if the server is rebooted after the old version of the plugin has been deleted but before the new version is completely installed, that could break the site.
As @knutsp pointed out, since very few site admins need to modify when updates are performed, it is unlikely that a UI would be added to core to allow admins to change the time updates happen.
I would suggest you install the WP Crontrol plugin. WP Crontrol does provide a UI for changing the time that any WP cron job runs.
The 3 relevant cron jobs are wp_version_check
(core updates), wp_update_plugins
, and wp_update_themes
.
Hope this helps!
Hello, @josvlaar, welcome to Trac and thank you for the suggestion.
By it's philosophy https://wordpress.org/about/philosophy/ WordPress adds new user facing settings only when needed by many or most users. At first glance, this looks like an edge case, as very few needs this, and those who may need such for technical or special server setup or maintenance reasons, will usually have the skill to alter this behaviour to their special needs.
WordPress updates are contolled by a few PHP constants, the most used is
AUTOMATIC_UPDATER_DISABLED
. It's value (true or false) may depend on anything available in PHP at load time.Could this help in your case? https://wordpress.org/support/topic/set-time-to-autoupdate/#post-15562945