WordPress.org

Make WordPress Core

Changeset 16359


Ignore:
Timestamp:
11/13/10 23:11:50 (4 years ago)
Author:
scribu
Message:

Use wp_start_object_cache() in switch_to_blog(). Props prettyboymp. Fixes #15361

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-blogs.php

    r15843 r16359  
    501501        $global_groups = false; 
    502502 
    503     wp_cache_init(); 
     503    wp_start_object_cache(); 
    504504    if ( function_exists('wp_cache_add_global_groups') ) { 
    505505        if ( is_array( $global_groups ) ) 
     
    565565        $global_groups = false; 
    566566 
    567     wp_cache_init(); 
     567    wp_start_object_cache(); 
    568568    if ( function_exists('wp_cache_add_global_groups') ) { 
    569569        if ( is_array( $global_groups ) ) 
Note: See TracChangeset for help on using the changeset viewer.