Changeset 12888 for trunk/wp-includes/load.php
- Timestamp:
- 01/28/2010 05:28:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r12885 r12888 319 319 */ 320 320 function 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 } 328 330 } 329 331
Note: See TracChangeset
for help on using the changeset viewer.