WordPress MU

Changeset 1298


Ignore:
Timestamp:
05/19/2008 03:22:13 PM (18 years ago)
Author:
donncha
Message:

Turn off object caching when WP_INSTALL is set

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-activate.php

    r942 r1298  
    33require ('wp-config.php');
    44require_once( ABSPATH . WPINC . '/registration.php');
     5
     6if( is_object( $wp_object_cache ) ) $wp_object_cache->cache_enabled = false;
    57
    68do_action("activate_header");
  • trunk/wp-includes/wpmu-functions.php

    r1283 r1298  
    11391139
    11401140function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) {
     1141    global $wp_object_cache;
    11411142    $domain = sanitize_user( $domain );
    11421143    $title = strip_tags( $title );
     
    11521153    if ( !defined("WP_INSTALLING") )
    11531154        define( "WP_INSTALLING", true );
     1155    if( is_object( $wp_object_cache ) ) $wp_object_cache->cache_enabled = false;
    11541156
    11551157    if ( ! $blog_id = insert_blog($domain, $path, $site_id) )
Note: See TracChangeset for help on using the changeset viewer.