Changeset 10100 for trunk/src/bp-blogs/bp-blogs-cache.php
- Timestamp:
- 09/12/2015 06:03:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-cache.php
r10011 r10100 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Blogs Caching. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 38 37 * Clear the blog object cache. 39 38 * 40 * @since BuddyPress (1.0.0)39 * @since 1.0.0 41 40 * 42 41 * @param int $blog_id ID of the current blog. … … 52 51 } 53 52 54 // List actions to clear object caches on 53 // List actions to clear object caches on. 55 54 add_action( 'bp_blogs_remove_blog_for_user', 'bp_blogs_clear_blog_object_cache', 10, 2 ); 56 55 add_action( 'wpmu_new_blog', 'bp_blogs_clear_blog_object_cache', 10, 2 ); 57 56 add_action( 'bp_blogs_remove_blog', 'bp_blogs_clear_blog_object_cache' ); 58 57 59 // List actions to clear super cached pages on, if super cache is installed 58 // List actions to clear super cached pages on, if super cache is installed. 60 59 add_action( 'bp_blogs_remove_data_for_blog', 'bp_core_clear_cache' ); 61 60 add_action( 'bp_blogs_remove_comment', 'bp_core_clear_cache' );
Note: See TracChangeset
for help on using the changeset viewer.