WordPress.org

Make WordPress Core

Changeset 14665


Ignore:
Timestamp:
05/15/10 15:00:53 (4 years ago)
Author:
ryan
Message:

Don't update_post_caches if a persistent object cache is installed. fixes #12611

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r14607 r14665  
    16011601     */ 
    16021602    function &get_posts() { 
    1603         global $wpdb, $user_ID; 
     1603        global $wpdb, $user_ID, $_wp_using_ext_object_cache; 
    16041604 
    16051605        do_action_ref_array('pre_get_posts', array(&$this)); 
     
    16301630            $q['suppress_filters'] = false; 
    16311631 
    1632         if ( !isset($q['cache_results']) ) 
    1633             $q['cache_results'] = true; 
     1632        if ( !isset($q['cache_results']) ) { 
     1633            if ( $_wp_using_ext_object_cache ) 
     1634                $q['cache_results'] = false; 
     1635            else 
     1636                $q['cache_results'] = true; 
     1637        } 
    16341638 
    16351639        if ( !isset($q['update_post_term_cache']) ) 
Note: See TracChangeset for help on using the changeset viewer.