[wpmu-trac] [WordPress MU Trac] #925: checks for themes & plugin updates happens too often (evey single click actually)

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Mar 12 02:36:11 GMT 2009


#925: checks for themes & plugin updates happens too often (evey single click
actually)
----------------------------+-----------------------------------------------
 Reporter:  david.chungue   |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:  2.7     
Component:  Administration  |     Version:  2.7     
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------
 When logging into the WPMU dashboard,
 the interface is very, very slow to respond. I found out this was caused
 by the wp sending HTTP requests every single time to
 http://api.wordpress.org/themes/update-check/1.0/  and
 http://api.wordpress.org/plugins/update-check/1.0/.

 I went to check on the source code. I found the problem to be in '''wp-
 includes/update.php'''  with few errors of the same type : the usage of
 '''get_option() instead of get_site_option()''' in multiple places. This
 prevents it from getting the time for the last update check, causing the
 code to send out the HTTP request every time.  Then, the time get stored
 properly the time using update_site_option().

 The functions that have the problem are :
 [[BR]] - wp_update_plugins()
 [[BR]] - wp_update_themes()
 [[BR]] - _maybe_update_plugins()
 [[BR]] - _maybe_update_themes()

 After fixing those little bugs, the interface is not slow anymore. Some
 people reported the slowness of the interface. So hopefully this solves
 their problem here.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/925>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list