Changeset 4841
- Timestamp:
- 01/30/2007 06:33:48 PM (17 years ago)
- Location:
- branches/2.0/wp-includes
- Files:
-
- 2 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 ?> -
branches/2.0/wp-includes/wp-db.php
r4620 r4841 41 41 42 42 function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { 43 return $this->__construct($dbuser, $dbpassword, $dbname, $dbhost); 44 } 45 46 function __construct($dbuser, $dbpassword, $dbname, $dbhost) { 47 register_shutdown_function(array(&$this, "__destruct")); 48 43 49 $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword); 44 50 if (!$this->dbh) { … … 56 62 57 63 $this->select($dbname); 64 } 65 66 function __destruct() { 67 return true; 58 68 } 59 69
Note: See TracChangeset
for help on using the changeset viewer.