Changeset 10373 for trunk/src/bp-groups/bp-groups-cache.php
- Timestamp:
- 11/22/2015 04:58:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cache.php
r10148 r10373 23 23 * $group_ids and adds it to WP cache. This improves efficiency when using 24 24 * groupmeta within a loop context. 25 *26 25 * 27 26 * @param int|string|array|bool $group_ids Accepts a single group_id, or a … … 78 77 * @since 2.0.0 79 78 * 80 * @param int $meta_id 81 * @param int $group_id 79 * @param int $meta_id Meta ID. 80 * @param int $group_id Group ID. 82 81 */ 83 82 function bp_groups_delete_group_cache_on_metadata_change( $meta_id, $group_id ) { … … 96 95 */ 97 96 function bp_groups_clear_group_creator_cache( $group_id, $group_obj ) { 98 // Clears the 'total groups' for this user 97 // Clears the 'total groups' for this user. 99 98 groups_clear_group_user_object_cache( $group_obj->id, $group_obj->creator_id ); 100 99 } … … 110 109 */ 111 110 function bp_groups_clear_group_members_caches( $group_obj, $user_ids ) { 112 // Clears the 'total groups' cache for each member in a group 111 // Clears the 'total groups' cache for each member in a group. 113 112 foreach ( (array) $user_ids as $user_id ) 114 113 groups_clear_group_user_object_cache( $group_obj->id, $user_id ); … … 200 199 * @since 2.1.0 201 200 * 202 * @param BP_Groups_Member $member 201 * @param BP_Groups_Member $member Member object. 203 202 */ 204 203 function groups_clear_group_administrator_cache_on_member_save( BP_Groups_Member $member ) {
Note: See TracChangeset
for help on using the changeset viewer.