From efcdc56c7a2a50b04b818ba5c913519e8050faa6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 8 Aug 2015 13:23:50 +0200 Subject: Cache/file: Catch unlink exception Call delete() which already catches the exception if the file is missing. Signed-off-by: Florian Pritz --- system/libraries/Cache/drivers/Cache_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries') 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; } -- cgit v1.2.3-24-g4f1b