Make WordPress Core

Changeset 10513


Ignore:
Timestamp:
02/05/2009 10:01:39 PM (16 years ago)
Author:
ryan
Message:

Flag if using external object cache. see #9048

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r10508 r10513  
    258258    wp_die(/*WP_I18N_BAD_PREFIX*/'<strong>ERROR</strong>: <code>$table_prefix</code> in <code>wp-config.php</code> can only contain numbers, letters, and underscores.'/*/WP_I18N_BAD_PREFIX*/);
    259259
    260 if ( file_exists(WP_CONTENT_DIR . '/object-cache.php') )
     260if ( file_exists(WP_CONTENT_DIR . '/object-cache.php') ) {
    261261    require_once (WP_CONTENT_DIR . '/object-cache.php');
    262 else
     262    $_wp_using_ext_object_cache = true;
     263} else {
    263264    require_once (ABSPATH . WPINC . '/cache.php');
     265    $_wp_using_ext_object_cache = false;
     266}
    264267
    265268wp_cache_init();
Note: See TracChangeset for help on using the changeset viewer.