Opened 13 years ago
Closed 13 years ago
#3803 closed enhancement (fixed)
groups_get_groupmeta() should be smarter about testing for existing cached data
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | major | Version: | 1.5.1 |
Component: | Groups | Keywords: | |
Cc: |
Description
When you use groups_get_groupmeta() for a meta value that does not exist, an empty value gets cached via wp_cache_set(). But because of some faulty typing, we end up continuing to query for this value over and over again in the same page load. groups_get_groupmeta() should know the difference between an uncached meta value and a cached value that happens to be empty. (Saves dozens of queries per page load, when using a couple group plugins.)
Note: See
TracTickets for help on using
tickets.
(In [5454]) Be smarter about checking for verified empty groupmeta items in the WP cache, in groups_get_groupmeta(). Fixes #3803