Changeset 6252
- Timestamp:
- 10/15/07 20:11:30 (1 year ago)
- Files:
-
- trunk/wp-includes/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/post.php
r6248 r6252 939 939 global $wpdb; 940 940 941 if ( ! $page_ids = wp_cache_get('all_page_ids', 'p ages') ) {941 if ( ! $page_ids = wp_cache_get('all_page_ids', 'posts') ) { 942 942 $page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type = 'page'"); 943 wp_cache_add('all_page_ids', $page_ids, 'p ages');943 wp_cache_add('all_page_ids', $page_ids, 'posts'); 944 944 } 945 945 … … 1058 1058 1059 1059 $key = md5( serialize( $r ) ); 1060 if ( $cache = wp_cache_get( 'get_pages', 'p age' ) )1060 if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) 1061 1061 if ( isset( $cache[ $key ] ) ) 1062 1062 return apply_filters('get_pages', $cache[ $key ], $r ); … … 1142 1142 1143 1143 $cache[ $key ] = $pages; 1144 wp_cache_set( 'get_pages', $cache, 'p age' );1144 wp_cache_set( 'get_pages', $cache, 'posts' ); 1145 1145 1146 1146 $pages = apply_filters('get_pages', $pages, $r); … … 1643 1643 clean_post_cache($id); 1644 1644 1645 wp_cache_delete( 'all_page_ids', 'p ages' );1646 wp_cache_delete( 'get_pages', 'p age' );1645 wp_cache_delete( 'all_page_ids', 'posts' ); 1646 wp_cache_delete( 'get_pages', 'posts' ); 1647 1647 1648 1648 do_action('clean_page_cache', $id);
