Make WordPress Core


Ignore:
Timestamp:
01/28/2010 05:28:44 PM (17 years ago)
Author:
ryan
Message:

Clean up cache re-init code in Multisite. Props nacin. fixes #12065

File:
1 edited

Legend:

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

    r12885 r12888  
    319319 */
    320320function wp_start_object_cache() {
    321         global $_wp_using_ext_object_cache;
    322         if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
    323                 require_once ( WP_CONTENT_DIR . '/object-cache.php' );
    324                 $_wp_using_ext_object_cache = true;
    325         } else {
    326                 require_once ( ABSPATH . WPINC . '/cache.php' );
    327                 $_wp_using_ext_object_cache = false;
     321        if ( ! function_exists( 'wp_cache_init' ) ) {
     322                global $_wp_using_ext_object_cache;
     323                if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
     324                        require_once ( WP_CONTENT_DIR . '/object-cache.php' );
     325                        $_wp_using_ext_object_cache = true;
     326                } else {
     327                        require_once ( ABSPATH . WPINC . '/cache.php' );
     328                        $_wp_using_ext_object_cache = false;
     329                }
    328330        }
    329331
Note: See TracChangeset for help on using the changeset viewer.