Installer checks for updates too often
-
The class WP_Installer contains the filter function
plugins_upgrade_checkfor the filterpre_set_site_transient_update_plugins. This function callsrefresh_repositories_data.The installer settings include a value called
last_repositories_updatecontaining the last time the repositories were updated. One would expect thatrefresh_repositories_datawould 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_pluginsthe 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_listchecks for the config settingsrepositories_excludeandrepositories_include, but those can’t be set at that time, asload_repositories_listis called in the constructor and the config is loaded later.
The topic ‘Installer checks for updates too often’ is closed to new replies.