Changeset 10140 for trunk/src/bp-xprofile/bp-xprofile-cache.php
- Timestamp:
- 09/25/2015 12:18:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-cache.php
r10022 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Caching Functions 2 /** 3 * BuddyPress XProfile Caching Functions. 5 4 * 6 5 * Caching functions handle the clearing of cached objects and pages on specific … … 8 7 * 9 8 * @package BuddyPress 10 */ 11 12 // Exit if accessed directly 9 * @subpackage XProfileCache 10 */ 11 12 // Exit if accessed directly. 13 13 defined( 'ABSPATH' ) || exit; 14 14 … … 16 16 * Determine which xprofile fields do not have cached values for a user. 17 17 * 18 * @since BuddyPress (2.2.0)18 * @since 2.2.0 19 19 * 20 20 * @param int $user_id User ID to check … … 48 48 * This function is called within a bp_has_profile() loop. 49 49 * 50 * @since BuddyPress (2.0.0)50 * @since 2.0.0 51 51 * 52 52 * @param array $object_ids Multi-dimensional array of object_ids, keyed by … … 177 177 * Clear cached XProfile field group data 178 178 * 179 * @since BuddyPress (2.1.0)179 * @since 2.1.0 180 180 * 181 181 * @param object $group_obj … … 191 191 * Clear cached XProfile fullname data for user 192 192 * 193 * @since BuddyPress (2.1.0)193 * @since 2.1.0 194 194 * 195 195 * @param int $user_id ID of user whose fullname cache to delete … … 206 206 * cases, except where the field is updated directly with xprofile_set_field_data() 207 207 * 208 * @since BuddyPress (2.0.0)208 * @since 2.0.0 209 209 */ 210 210 function xprofile_clear_fullname_cache_on_profile_field_edit( $data ) { … … 218 218 * Clear caches when a field object is modified. 219 219 * 220 * @since BuddyPress (2.0.0)220 * @since 2.0.0 221 221 * 222 222 * @param BP_XProfile_Field … … 239 239 * Clears member_type cache when a field's member types are updated. 240 240 * 241 * @since BuddyPress (2.4.0)241 * @since 2.4.0 242 242 */ 243 243 function bp_xprofile_clear_member_type_cache() { … … 249 249 * Clear caches when a user's updates a field data object. 250 250 * 251 * @since BuddyPress (2.0.0)251 * @since 2.0.0 252 252 * 253 253 * @param BP_XProfile_ProfileData $data_obj … … 272 272 * invalidation) is thus for backward compatibility only. 273 273 * 274 * @since BuddyPress (2.0.0)274 * @since 2.0.0 275 275 */ 276 276 function xprofile_clear_fullname_field_id_cache() {
Note: See TracChangeset
for help on using the changeset viewer.