  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: database.php 1497 2007-03-29 13:40:05Z hpdl $ |
| |
| 3 | + | $Id: database.php 1672 2007-07-26 22:07:13Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
302 | 302 | | $logging_fields = array(), |
| |
303 | 303 | | $logging_changed = array(); |
| |
304 | 304 | | |
  |
305 | | - | function osC_Database_Result(&$db_class) { |
| |
| 305 | + | function __construct(&$db_class) { |
|
306 | 306 | | $this->db_class =& $db_class; |
| |
307 | 307 | | } |
| |
308 | 308 | | |
| |
|
|
 |
… |
|
445 | 445 | | } |
| |
446 | 446 | | |
| |
447 | 447 | | if (isset($this->cache_key)) { |
  |
448 | | - | $osC_Cache->write($this->cache_key, $this->cache_data); |
| |
| 448 | + | $osC_Cache->write($this->cache_data, $this->cache_key); |
|
449 | 449 | | } |
| |
450 | 450 | | } |
| |
451 | 451 | | |
| |
|
|
 |
… |
|
485 | 485 | | |
| |
486 | 486 | | if (isset($this->cache_key)) { |
| |
487 | 487 | | if ($osC_Cache->read($this->cache_key, $this->cache_expire)) { |
  |
488 | | - | $this->cache_data = $osC_Cache->cached_data; |
| |
| 488 | + | $this->cache_data = $osC_Cache->getCache(); |
  |
489 | 489 | | |
| |
490 | 490 | | $this->cache_read = true; |
| |
491 | 491 | | } |