buddypress/bp-messages/bp-messages-cache.php
John James Jacoby 6a6bb69f53 Tag 1.5 Beta 1
git-svn-id: https://buddypress.svn.wordpress.org/tags/1.5-beta-1@4894 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2011-07-29 03:16:17 +00:00

20 lines
806 B
PHP

<?php
/*******************************************************************************
* Caching functions handle the clearing of cached objects and pages on specific
* actions throughout BuddyPress.
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// List actions to clear super cached pages on, if super cache is installed
add_action( 'messages_delete_thread', 'bp_core_clear_cache' );
add_action( 'messages_send_notice', 'bp_core_clear_cache' );
add_action( 'messages_message_sent', 'bp_core_clear_cache' );
// Don't cache message inbox/sentbox/compose as it's too problematic
add_action( 'messages_screen_compose', 'bp_core_clear_cache' );
add_action( 'messages_screen_sentbox', 'bp_core_clear_cache' );
add_action( 'messages_screen_inbox', 'bp_core_clear_cache' );
?>