Changeset 3011 for trunk/wp-settings.php
- Timestamp:
- 11/07/2005 09:56:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r2818 r3011 21 21 $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); 22 22 unset( $wp_filter, $cache_userdata, $cache_lastcommentmodified, $cache_lastpostdate, $cache_settings, $category_cache, $cache_categories ); 23 24 if ( ! isset($blog_id) ) 25 $blog_id = 1; 23 26 24 27 // Fix for IIS, which doesn't set REQUEST_URI … … 75 78 if ( defined('CUSTOM_USER_META_TABLE') ) 76 79 $wpdb->usermeta = CUSTOM_USER_META_TABLE; 77 80 78 81 // We're going to need to keep this around for a few months even though we're not using it internally 79 82 … … 88 91 $tablepostmeta = $wpdb->postmeta; 89 92 93 if ( file_exists(ABSPATH . 'wp-content/object-cache.php') ) 94 require (ABSPATH . 'wp-content/object-cache.php'); 95 else 96 require (ABSPATH . WPINC . '/cache.php'); 97 98 // For now, disable persistent caching by default. To enable, comment out 99 // the following line. 100 define('DISABLE_CACHE', true); 101 102 wp_cache_init(); 103 90 104 $wp_filters = array(); 91 105 … … 95 109 96 110 $wpdb->hide_errors(); 97 if ( !update_category_cache() && (!strstr($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) ) { 111 $db_check = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'"); 112 if ( !$db_check && (!strstr($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) ) { 98 113 if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) 99 114 $link = 'install.php'; … … 195 210 196 211 function shutdown_action_hook() { 212 wp_cache_close(); 197 213 do_action('shutdown'); 198 214 }
Note: See TracChangeset
for help on using the changeset viewer.