Changeset 7396
- Timestamp:
- 10/08/2013 08:57:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-cache.php
r7051 r7396 2 2 3 3 /** 4 * Functions related to the BuddyPress Activity component and the WP Cache 4 * Functions related to the BuddyPress Activity component and the WP Cache. 5 5 * 6 6 * @since BuddyPress (1.6) … … 11 11 12 12 /** 13 * Slurp s up activitymeta13 * Slurp up activitymeta for a specified set of activity items. 14 14 * 15 * This function is called in two places in the BP_ Groups_Groupclass:16 * - in the populate() method, when single groupobjects are populated15 * This function is called in two places in the BP_Activity_Activity class: 16 * - in the populate() method, when single activity objects are populated 17 17 * - in the get() method, when multiple groups are queried 18 18 * 19 * It grabs all groupmeta associated with all of the groups passed in $group_ids and adds it to 20 * the WP cache. This improves efficiency when using groupmeta inline 19 * It grabs all activitymeta associated with all of the activity items passed 20 * in $activity_ids and adds it to the WP cache. This improves efficiency when 21 * using querying activitymeta inline. 21 22 * 22 * @param int|str|array $ group_ids Accepts a single group_id, or a comma-separated list or array of23 * groupids23 * @param int|str|array $activity_ids Accepts a single activity ID, or a comma- 24 * separated list or array of activity ids 24 25 */ 25 26 function bp_activity_update_meta_cache( $activity_ids = false ) { … … 38 39 39 40 /** 40 * Clear the cache for all metadata of a given activity 41 * Clear the cache for all metadata of a given activity. 41 42 * 42 43 * @param int $activity_id
Note: See TracChangeset
for help on using the changeset viewer.