Changeset 4841 for branches/2.0/wp-includes/cache.php
- Timestamp:
- 01/30/2007 06:33:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/cache.php
r4487 r4841 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 } … … 403 405 404 406 function WP_Object_Cache() { 407 return $this->__construct(); 408 } 409 410 function __construct() { 405 411 global $blog_id; 412 413 register_shutdown_function(array(&$this, "__destruct")); 406 414 407 415 if (defined('DISABLE_CACHE')) … … 439 447 $this->blog_id = $this->hash($blog_id); 440 448 } 449 450 function __destruct() { 451 $this->save(); 452 return true; 453 } 441 454 } 442 455 ?>
Note: See TracChangeset
for help on using the changeset viewer.