Show
Ignore:
Timestamp:
12/04/2007 11:00:30 PM (13 months ago)
Author:
Shadowhand
Message:

Updates to Cache:

  • Cache library should not call del() when setting items, it's not always necessary
  • Cache interface no longer requires the exists() method, it's not always necessary
  • Added Cache_Sqlite driver
  • Cache_File::set() changed to call a del()
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Cache_File.php

    r1411 r1420  
    8888        public function set($id, $data, $tags, $expiration) 
    8989        { 
     90                // Remove old cache files 
     91                $this->del($id); 
     92 
     93                // Construct the filename 
    9094                $filename = $id.'~'.implode('+', $tags).'~'.$expiration; 
    9195