#3814 closed enhancement (fixed)
Collect activity meta at the beginning of an activity loop, using new cache functions
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | |
Cc: |
Description
See #3799
Apply to the activity component.
This is going to be tricky, because of the way the activity component currently constructs its activity meta cache keys. They are of the format
'bp_activity_meta_' . $meta_key . '_' . $activity_id
rather than
'bp_activity_meta_' . $activity_id . '_' . $meta_key
The latter method is how bp_update_meta_cache() expects the keys to be constructed, and is the way that it's done in other components. That will mean doing some backpat work, probably just checking the legacy cache key in bp_activity_get_meta().
(In [5505]) Collect and cache activity meta at the beginning of the activity loop, for quicker lookups. Fixes #3814