[wp-trac] [WordPress Trac] #34030: Plugins API: Request only data which is needed

WordPress Trac noreply at wordpress.org
Fri Sep 25 22:15:20 UTC 2015


#34030: Plugins API: Request only data which is needed
--------------------------+--------------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+--------------------------
Description changed by ocean90:

Old description:

> There are some `plugins_api()` calls which are requesting all data fields
> even if only some of them are used. We should define the fields to reduce
> execution time and memory usage.

New description:

 There are some `plugins_api()` calls which are requesting all data fields
 even if only some of them are used. We should define the fields to reduce
 execution time and memory usage.

 Defaults:

 {{{
 'short_description' => true,
 'description' => false,
 'sections' => true,
 'tested' => true,
 'requires' => true,
 'rating' => true,
 'ratings' => true,
 'downloaded' => true,
 'downloadlink' => true,
 'last_updated' => true,
 'added' => true,
 'tags' => true,
 'compatibility' => true,
 'homepage' => true,
 'versions' => false,
 'donate_link' => true,
 'reviews' => false,
 'banners' => false,
 'icons' => false,
 'active_installs' => false,
 'group' => false,
 'contributors' => false,
 }}}

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34030#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list