Changeset 9906 for trunk/src/bp-groups/bp-groups-cache.php
- Timestamp:
- 06/02/2015 05:21:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cache.php
r9819 r9906 2 2 3 3 /** 4 * BuddyPress Groups Caching 4 * BuddyPress Groups Caching. 5 5 * 6 6 * Caching functions handle the clearing of cached objects and pages on specific … … 25 25 * groupmeta within a loop context. 26 26 * 27 * @param int|str|array $group_ids Accepts a single group_id, or a 28 * comma-separated list or array of group ids. 27 * 28 * @param int|string|array|bool $group_ids Accepts a single group_id, or a 29 * comma-separated list or array of 30 * group ids. 29 31 */ 30 32 function bp_groups_update_meta_cache( $group_ids = false ) { … … 46 48 * Clear the cached group count. 47 49 * 48 * @param $group_id Not used.50 * @param int $group_id Not used. 49 51 */ 50 52 function groups_clear_group_object_cache( $group_id ) { … … 76 78 * 77 79 * @since BuddyPress (2.0.0) 80 * 81 * @param int $meta_id 82 * @param int $group_id 78 83 */ 79 84 function bp_groups_delete_group_cache_on_metadata_change( $meta_id, $group_id ) { … … 88 93 * @since BuddyPress (1.6.0) 89 94 * 90 * @param int $group_idID of the group.95 * @param int $group_id ID of the group. 91 96 * @param BP_Groups_Group $group_obj Group object. 92 97 */ … … 98 103 99 104 /** 100 * Clears caches for all members in a group when a group is deleted 105 * Clears caches for all members in a group when a group is deleted. 101 106 * 102 107 * @since BuddyPress (1.6.0) 103 108 * 104 109 * @param BP_Groups_Group $group_obj Group object. 105 * @param array User IDs who were in this group.110 * @param array $user_ids User IDs who were in this group. 106 111 */ 107 112 function bp_groups_clear_group_members_caches( $group_obj, $user_ids ) { … … 136 141 * 137 142 * @param int $group_id The group ID. Not used in this function. 138 * @param int $user_id The user ID.143 * @param int $user_id The user ID. 139 144 */ 140 145 function bp_groups_clear_invite_count_on_uninvite( $group_id, $user_id ) { … … 148 153 * @since BuddyPress (2.0.0) 149 154 * 150 * @param int $group_idThe group ID. Not used in this function.155 * @param int $group_id The group ID. Not used in this function. 151 156 * @param array $invited_users Array of invited user IDs. 152 157 */ … … 162 167 * 163 168 * @param int $group_id The group ID. Not used in this function. 164 * @param int $user_id The user ID.169 * @param int $user_id The user ID. 165 170 */ 166 171 function groups_clear_group_user_object_cache( $group_id, $user_id ) {
Note: See TracChangeset
for help on using the changeset viewer.