[wp-trac] [WordPress Trac] #12140: Reduce DB queries during install by limiting use of wp_load_alloptions()

WordPress Trac wp-trac at lists.automattic.com
Sat May 22 15:40:18 UTC 2010


#12140: Reduce DB queries during install by limiting use of wp_load_alloptions()
------------------------------------+---------------------------------------
 Reporter:  donncha                 |        Owner:  dd32    
     Type:  enhancement             |       Status:  reopened
 Priority:  high                    |    Milestone:  3.0     
Component:  Upgrade/Install         |      Version:          
 Severity:  blocker                 |   Resolution:          
 Keywords:  dev-feedback multisite  |  
------------------------------------+---------------------------------------

Comment(by eddiemoya):

 Replying to [comment:26 westi]:
 > Plugins aren't included in wp-activate because it has {{{define(
 "WP_INSTALLING", true );}}} at the top and we don't include plugins while
 installing.

 That is correct, and we figured out that removing that WP_INSTALLING
 allows the inclusion of plugin function. They are necessary because some
 themes depend on plugin functions to generate parts of the header/footer,
 which wp-activate pulls in.

 The only thing I am not certain of is what the negative effects of
 removing that constant are. It was put there for a reason, and taking it
 out must have some effect. I will do some testing but perhaps someone else
 already knows the answer. Some discussions elsewhere lead my to presume
 that its removal will negatively effect the activation process itself
 somehow.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12140#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list