[Bb-trac] [bbPress] #777: bb_cache_all_options() has stopped
functioning
bbPress
bb-trac at lists.bbpress.org
Sat Jan 26 08:33:47 GMT 2008
#777: bb_cache_all_options() has stopped functioning
----------------------+-----------------------------------------------------
Reporter: _ck_ | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Back-end | Version: 1.0-alpha (trunk)
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
Sometime after build 951 (but before build 991) the undocumented setting
to pre-load any plugin options from mysql (set as topic_id = 0) stopped
working.
This is causing severely bloated query counts for every page load on
installations with several plugins.
Typically, to activate this feature put into bb-config.php
{{{$bb->load_options = true;}}}
and then bb-settings.php calls in bb-includes/functions.php
{{{
function bb_cache_all_options() { // Don't use the return value; use the
API. Only returns options stored in DB.
return bb_append_meta( (object) array('topic_id' => 0), 'topic' );
}
}}}
I am investigating but it might take me awhile as I have not worked on
bbPress in months, where hopefully someone more familiar will know what
broke in the latest builds. Thanks for any help.
--
Ticket URL: <http://trac.bbpress.org/ticket/777>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list