Changeset 19729
- Timestamp:
- 01/11/2012 09:26:18 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/bookmark.php
r19712 r19729 376 376 * @uses wp_cache_delete() Deletes the contents of 'get_bookmarks' 377 377 */ 378 function clean_bookmark_cache( $bookmark_id) {378 function clean_bookmark_cache( $bookmark_id ) { 379 379 wp_cache_delete( $bookmark_id, 'bookmark' ); 380 380 wp_cache_delete( 'get_bookmarks', 'bookmark' ); 381 } 381 clean_object_term_cache( $bookmark_id, 'link'); 382 } -
trunk/wp-includes/post.php
r19727 r19729 4331 4331 return; 4332 4332 4333 $post = get_post( $id ); 4334 4333 4335 wp_cache_delete($id, 'posts'); 4334 4336 wp_cache_delete($id, 'post_meta'); 4335 4337 4336 clean_object_term_cache( $id, 'post');4338 clean_object_term_cache( $id, $post->post_type ); 4337 4339 4338 4340 wp_cache_delete( 'wp_get_archives', 'general' ); -
trunk/wp-includes/taxonomy.php
r19684 r19729 2658 2658 2659 2659 foreach ( $ids as $id ) { 2660 foreach ( $taxonomies 2660 foreach ( $taxonomies as $taxonomy ) { 2661 2661 if ( ! isset($object_terms[$id][$taxonomy]) ) { 2662 2662 if ( !isset($object_terms[$id]) ) … … 2669 2669 foreach ( $object_terms as $id => $value ) { 2670 2670 foreach ( $value as $taxonomy => $terms ) { 2671 wp_cache_ set($id, $terms, "{$taxonomy}_relationships");2671 wp_cache_add( $id, $terms, "{$taxonomy}_relationships" ); 2672 2672 } 2673 2673 }
Note: See TracChangeset
for help on using the changeset viewer.