Changeset 5774 for trunk/src/includes/core/cache.php
- Timestamp:
- 05/21/2015 08:50:34 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/cache.php
r5770 r5774 142 142 } 143 143 144 // Child query types to clean 145 $post_types = array( 146 bbp_get_forum_post_type(), 147 bbp_get_topic_post_type(), 148 bbp_get_reply_post_type() 149 ); 150 151 // Bail if not a bbPress post type 152 if ( ! in_array( $_post->post_type, $post_types, true ) ) { 153 return; 154 } 155 144 156 wp_cache_delete( $_post->ID, 'posts' ); 145 157 wp_cache_delete( $_post->ID, 'post_meta' ); … … 148 160 149 161 do_action( 'bbp_clean_post_cache', $_post->ID, $_post ); 150 151 // Child query types to clean152 $post_types = array(153 bbp_get_topic_post_type(),154 bbp_get_forum_post_type(),155 bbp_get_reply_post_type()156 );157 162 158 163 // Loop through query types and clean caches
Note: See TracChangeset
for help on using the changeset viewer.