Installer checks for updates too often
-
The class WP_Installer contains the filter function
plugins_upgrade_check
for the filterpre_set_site_transient_update_plugins
. This function callsrefresh_repositories_data
.The installer settings include a value called
last_repositories_update
containing the last time the repositories were updated. One would expect thatrefresh_repositories_data
would check this value and not query the repositories if the update data were still fresh. This is not the case, so for every invocation of the filterpre_set_site_transient_update_plugins
the repositories are fetched. For me, this happens four times on most pages, so this makes the WordPress administration panel much slower than it should be.And,
load_repositories_list
checks for the config settingsrepositories_exclude
andrepositories_include
, but those can’t be set at that time, asload_repositories_list
is called in the constructor and the config is loaded later.
- The topic ‘Installer checks for updates too often’ is closed to new replies.