Changeset 5248 for trunk/wp-includes/post.php
- Timestamp:
- 04/12/2007 02:27:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5244 r5248 1013 1013 if ( ! $page_ids = wp_cache_get('all_page_ids', 'pages') ) { 1014 1014 $page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type = 'page'"); 1015 wp_cache_ set('all_page_ids', $page_ids, 'pages');1015 wp_cache_add('all_page_ids', $page_ids, 'pages'); 1016 1016 } 1017 1017 … … 1056 1056 // Potential issue: we're not checking to see if the post_type = 'page' 1057 1057 // So all non-'post' posts will get cached as pages. 1058 wp_cache_ set($_page->ID, $_page, 'pages');1058 wp_cache_add($_page->ID, $_page, 'pages'); 1059 1059 } 1060 1060 }
Note: See TracChangeset
for help on using the changeset viewer.