Make WordPress Core


Ignore:
Timestamp:
03/27/2005 09:56:10 PM (20 years ago)
Author:
ryan
Message:

Split post and page caches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r2478 r2479  
    252252
    253253function &get_pages($args = '') {
    254     global $wpdb, $cache_pages;
     254    global $wpdb, $page_cache;
    255255
    256256    parse_str($args, $r);
     
    282282                                                            "ORDER BY " . $r['sort_column'] . " " . $r['sort_order']);
    283283
     284    if ( empty($pages) )
     285        return array();
     286
    284287    // Update cache.
    285     update_post_cache($pages);
    286 
    287     if ( empty($pages) )
    288         $pages = array();
     288    update_page_cache($pages);
    289289
    290290    return $pages;
Note: See TracChangeset for help on using the changeset viewer.