Changeset 4686 for trunk/wp-includes/cache.php
- Timestamp:
- 01/06/2007 11:36:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r4495 r4686 9 9 global $wp_object_cache; 10 10 11 if ( ! isset($wp_object_cache) ) 12 return; 11 13 return $wp_object_cache->save(); 12 14 } … … 393 395 394 396 function WP_Object_Cache() { 397 return $this->__construct(); 398 } 399 400 function __construct() { 395 401 global $blog_id; 402 403 register_shutdown_function(array(&$this, "__destruct")); 396 404 397 405 if (defined('DISABLE_CACHE')) … … 429 437 $this->blog_id = $this->hash($blog_id); 430 438 } 439 440 function __destruct() { 441 $this->save(); 442 return true; 443 } 431 444 } 432 445 ?>
Note: See TracChangeset
for help on using the changeset viewer.