summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-08-08 13:23:50 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-08-08 13:23:50 +0200
commitefcdc56c7a2a50b04b818ba5c913519e8050faa6 (patch)
tree4c2c8758ecda51ff5aed7371c507c70d18e10290 /system
parentf48c000aa364302bb692852fca6dee4d8dc2286f (diff)
Cache/file: Catch unlink exception
Call delete() which already catches the exception if the file is missing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php
index 625397817..2f250e764 100644
--- a/system/libraries/Cache/drivers/Cache_file.php
+++ b/system/libraries/Cache/drivers/Cache_file.php
@@ -62,7 +62,7 @@ class CI_Cache_file extends CI_Driver {
if (time() > $data['time'] + $data['ttl'])
{
- unlink($this->_cache_path.$id);
+ $this->delete($id);
return FALSE;
}