Changeset 1420
- Timestamp:
- 12/04/2007 11:00:30 PM (12 months ago)
- Location:
- trunk/system/libraries
- Files:
-
- 1 added
- 3 modified
-
Cache.php (modified) (1 diff)
-
drivers/Cache.php (modified) (1 diff)
-
drivers/Cache_File.php (modified) (1 diff)
-
drivers/Cache_Sqlite.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Cache.php
r1402 r1420 168 168 } 169 169 170 // Remove old cache files171 $this->driver->del($id);172 173 170 return $this->driver->set($id, $data, $tags, $lifetime); 174 171 } -
trunk/system/libraries/drivers/Cache.php
r1315 r1420 5 5 interface Cache_Driver 6 6 { 7 8 /**9 * Test if a cache exists by id or tag.10 */11 public function exists($id, $tag = FALSE);12 7 13 8 /** -
trunk/system/libraries/drivers/Cache_File.php
r1411 r1420 88 88 public function set($id, $data, $tags, $expiration) 89 89 { 90 // Remove old cache files 91 $this->del($id); 92 93 // Construct the filename 90 94 $filename = $id.'~'.implode('+', $tags).'~'.$expiration; 91 95
