[wp-trac] Re: [WordPress Trac] #7372: Plugin update check running on each pageload is slow

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 31 17:58:21 GMT 2008


#7372: Plugin update check running on each pageload is slow
--------------------------------------+-------------------------------------
 Reporter:  DD32                      |        Owner:  anonymous
     Type:  defect                    |       Status:  new      
 Priority:  normal                    |    Milestone:  2.7      
Component:  Administration            |      Version:  2.6      
 Severity:  normal                    |   Resolution:           
 Keywords:  needs-patch dev-feedback  |  
--------------------------------------+-------------------------------------
Comment (by Otto42):

 Ergh... I like the fact that it checks to see if the version has changed,
 and don't want that delayed. It makes it easy for me to test upgrading
 during plugin development, as I can simply decrement the version number
 and perform an upgrade.

 Here's the real problem as I see it: get_plugins() does a whole crapload
 of work. It recurses through the plugin directory, reads every bloody
 *.php file, does regexp in all of them for the plugin headers... Having to
 do all that every admin page is rough.

 My suggestion is to limit *only that part of it* to hits to the
 plugins.php page. When you go to look at the plugins, then it has to load
 all the plugin data anyway. No loss there on load time (and it's using
 caching too, so that will work out just fine). For all the rest of the
 admin pages, we only do the 12 hour check.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7372#comment:24>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list