Changeset 7786 for trunk/bp-xprofile/bp-xprofile-cache.php
- Timestamp:
- 02/05/2014 02:15:53 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cache.php
r7782 r7786 40 40 add_action( 'xprofile_fields_deleted_field', 'xprofile_clear_profile_field_object_cache' ); 41 41 42 /** 43 * Clear caches when a user's updates a field data object. 44 * 45 * @since BuddyPress (2.0.0) 46 * 47 * @param BP_XProfile_ProfileData 48 */ 49 function xprofile_clear_profiledata_object_cache( $data_obj ) { 50 wp_cache_delete( $data_obj->field_id, 'bp_xprofile_data_' . $data_obj->user_id ); 51 } 52 add_action( 'xprofile_data_after_save', 'xprofile_clear_profiledata_object_cache' ); 53 add_action( 'xprofile_data_after_delete', 'xprofile_clear_profiledata_object_cache' ); 54 42 55 // List actions to clear super cached pages on, if super cache is installed 43 56 add_action( 'xprofile_updated_profile', 'bp_core_clear_cache' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)