[wp-trac] [WordPress Trac] #4007: check for constant instead of db

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 21 14:52:52 GMT 2007


#4007: check for constant instead of db
--------------------------+-------------------------------------------------
 Reporter:  mikewp        |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  normal        |   Milestone:  2.2      
Component:  Optimization  |     Version:  2.2      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 is_blog_installed checks the db for the blog URL. But this option isn't
 changed often ;) . So, it's better to define a constant with the blog url
 and thus we have one less query.

 The patch keeps the 'old' way if the constant isn't defined.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4007>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list