[buddypress-trac] [BuddyPress Trac] #6012: Cache: Invalid usage of `! $count`

buddypress-trac noreply at wordpress.org
Mon Dec 15 20:38:12 UTC 2014


#6012: Cache: Invalid usage of `! $count`
------------------------------+---------------------
 Reporter:  r-a-y             |       Owner:  r-a-y
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.2
Component:  All Components    |     Version:  1.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9231"]:
 {{{
 #!CommitTicketReference repository="" revision="9231"
 Check cache for count functions that return zero.

 Some of our count functions were previously setting counts of zero
 correctly, but the functions themselves were not referencing the cache
 properly when the count returned zero.  This led to unnecessary database
 queries and we hate extra queries!

 This commit addresses the problem and adds unit tests.

 Props r-a-y, boonebgorges.

 Fixes #6012.
 }}}

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


More information about the buddypress-trac mailing list