Make WordPress Core

Ticket #22661: 22661.2.patch

File 22661.2.patch, 751 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/load.php

     
    390390 * @since 3.0.0
    391391 */
    392392function wp_start_object_cache() {
    393         global $blog_id;
     393        global $blog_id, $_wp_using_ext_object_cache;
    394394
    395395        $first_init = false;
    396396        if ( ! function_exists( 'wp_cache_init' ) ) {
    397397                if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
    398398                        require_once ( WP_CONTENT_DIR . '/object-cache.php' );
    399                         if ( function_exists( 'wp_cache_init' ) )
     399                        if ( function_exists( 'wp_cache_init' ) && ! isset( $_wp_using_ext_object_cache ) ) {
    400400                                wp_using_ext_object_cache( true );
     401                        }
    401402                }
    402403
    403404                $first_init = true;