[wp-trac] [WordPress Trac] #35301: list_plugin_updates() performs an API call per plugin item

WordPress Trac noreply at wordpress.org
Mon Jan 4 07:20:35 UTC 2016


#35301: list_plugin_updates() performs an API call per plugin item
--------------------------+-------------------------------------
 Reporter:  dd32          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.5
Component:  Plugins       |    Version:
 Severity:  normal        |   Keywords:  has-patch needs-testing
  Focuses:                |
--------------------------+-------------------------------------
 Currently `list_plugin_updates()` performs an uncached API query for each
 row of the table on every page load.
 We should stop doing that, it slows the page down and causes many
 unnecessary requests to the WordPress.org servers.

 The call is to fetch the `tested` and `compatible` information for each
 plugin, api.WordPress.org has been updated to return these pieces of
 information alongside the update response for WordPress 4.5+ as
 implemented in the attached patch.

 It currently returns objects / forces them to objects in WordPress, the
 response format from the API may change as needed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35301>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list