Changeset 12317 for trunk/src/bp-xprofile/bp-xprofile-cache.php
- Timestamp:
- 12/07/2018 06:41:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-cache.php
r11818 r12317 288 288 add_action( 'xprofile_field_before_save', 'bp_xprofile_reset_fields_by_name_cache_incrementor' ); 289 289 290 /** 291 * Resets all incremented bp_xprofile_groups caches. 292 * 293 * @since 5.0.0 294 */ 295 function bp_xprofile_reset_groups_cache_incrementor() { 296 bp_core_reset_incrementor( 'bp_xprofile_groups' ); 297 } 298 add_action( 'xprofile_group_after_delete', 'bp_xprofile_reset_groups_cache_incrementor' ); 299 add_action( 'xprofile_group_after_save', 'bp_xprofile_reset_groups_cache_incrementor' ); 300 add_action( 'xprofile_field_after_delete', 'bp_xprofile_reset_groups_cache_incrementor' ); 301 add_action( 'xprofile_field_after_save', 'bp_xprofile_reset_groups_cache_incrementor' ); 302 290 303 // List actions to clear super cached pages on, if super cache is installed. 291 304 add_action( 'xprofile_updated_profile', 'bp_core_clear_cache' );
Note: See TracChangeset
for help on using the changeset viewer.