Changeset 10022 for trunk/src/bp-xprofile/bp-xprofile-cache.php
- Timestamp:
- 07/21/2015 02:00:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-cache.php
r9819 r10022 235 235 add_action( 'xprofile_fields_saved_field', 'xprofile_clear_profile_field_object_cache' ); 236 236 add_action( 'xprofile_fields_deleted_field', 'xprofile_clear_profile_field_object_cache' ); 237 238 /** 239 * Clears member_type cache when a field's member types are updated. 240 * 241 * @since BuddyPress (2.4.0) 242 */ 243 function bp_xprofile_clear_member_type_cache() { 244 wp_cache_delete( 'field_member_types', 'bp_xprofile' ); 245 } 246 add_action( 'bp_xprofile_field_set_member_type', 'bp_xprofile_clear_member_type_cache' ); 237 247 238 248 /**
Note: See TracChangeset
for help on using the changeset viewer.