[buddypress-trac] [BuddyPress Trac] #5815: bp_blogs_total_blogs_for_user() queries database on each page view in multisite

buddypress-trac noreply at wordpress.org
Sun Aug 17 18:11:44 UTC 2014


#5815: bp_blogs_total_blogs_for_user() queries database on each page view in
multisite
------------------------------+---------------------------
 Reporter:  wpdennis          |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.1
Component:  Blogs             |     Version:  1.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8935"]:
 {{{
 #!CommitTicketReference repository="" revision="8935"
 Improvements to bp_blogs_total_blogs_for_user()

 - Don't bother to check the cache or perform DB queries for users who are
 not
   logged in
 - Do a strict type check when checking the cache, to ensure that a cached
 value
   of 0 does not result in an unnecessary database hit

 Fixes #5815

 Props wpdennis, r-a-y
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5815#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list