Changeset 7994 for trunk/bp-messages/bp-messages-cache.php
- Timestamp:
- 02/26/2014 09:37:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-cache.php
r6342 r7994 23 23 add_action( 'messages_screen_sentbox', 'bp_core_clear_cache' ); 24 24 add_action( 'messages_screen_inbox', 'bp_core_clear_cache' ); 25 26 /** 27 * Invalidates cache for notices. 28 * 29 * Currently, invalidates active notice cache. 30 * 31 * @since BuddyPress (2.0.0) 32 */ 33 function bp_notices_clear_cache( $notice ) { 34 wp_cache_delete( 'active_notice', 'bp_messages' ); 35 } 36 add_action( 'messages_notice_after_save', 'bp_notices_clear_cache' ); 37 add_action( 'messages_notice_before_delete', 'bp_notices_clear_cache' );
Note: See TracChangeset
for help on using the changeset viewer.