Can you post a patch for these 2 tickets or should we move them forward?:
- Gautam ( http://www.gaut.am )
Posted 1 year ago
#
Can you post a patch for these 2 tickets or should we move them forward?:
Unfortunately they don't really matter anymore as it would require going back to change plugins to optimize them, which is highly unlikely to ever happen now.
The first one is not too hard to fix though.
My best guess would be in functions.bb-core.php
line 992
return new BB_Query( 'topic', $query_args, "bb_view_$view" );
should become
return empty($query_args) ? false : (new BB_Query( 'topic', $query_args, "bb_view_$view" );
In theory that should prevent a wasted query when the query is empty.
Completely untested though and nothing right now would take advantage of it.
RSS feed for this topic
You must log in to post.