Skip to:
Content

BuddyPress.org

Timestamp:
12/15/2014 08:38:11 PM (12 years ago)
Author:
r-a-y
Message:

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.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.