Caching typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@3490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e3834a8f51
commit
88aba4e4c2
|
@ -814,7 +814,7 @@ function get_all_category_ids() {
|
||||||
function get_all_page_ids() {
|
function get_all_page_ids() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if ( ! $page_ids = wp_cache_get('all_page_ids', 'posts') ) {
|
if ( ! $page_ids = wp_cache_get('all_page_ids', 'pages') ) {
|
||||||
$page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_status='static'");
|
$page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_status='static'");
|
||||||
wp_cache_add('all_page_ids', $page_ids, 'pages');
|
wp_cache_add('all_page_ids', $page_ids, 'pages');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue