mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/tags/1.5-rc-1@5137 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
20 lines
No EOL
805 B
PHP
20 lines
No EOL
805 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' );
|
|
|
|
?>
|