[Bb-trac] [bbPress] #797: bb_is_installed() should do something useful instead of wasting query

bbPress bb-trac at lists.bbpress.org
Sat Mar 1 19:21:04 GMT 2008


#797: bb_is_installed() should do something useful instead of wasting query
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  low          |   Milestone:  0.8.4
Component:  Back-end     |     Version:       
 Severity:  trivial      |    Keywords:       
-------------------------+--------------------------------------------------
 bb_is_installed wastes a mysql query on every page load since after
 bbpress is properly installed, it's never needed - even after upgrades
 etc.

 Perhaps it can simply try to cache the bb_forums table which is usually
 done a few queries later. Or maybe a db version check. But please change
 it to something, anything more useful than just "select * limit 1".


 Around line 88 in bb-settings.php
 [http://trac.bbpress.org/browser/branches/0.8/bb-settings.php bb-
 settings.php]
 {{{ if ( !bb_is_installed() && ( !defined('BB_INSTALLING') ||
 BB_INSTALLING ) ) { }}}

 and around line 18 in functions.php
 [http://trac.bbpress.org/browser/branches/0.8/bb-includes/functions.php
 functions.php]

-- 
Ticket URL: <http://trac.bbpress.org/ticket/797>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list