diff options
-rw-r--r-- | system/libraries/Cache/drivers/Cache_file.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index 50602b4b8..625397817 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -107,7 +107,11 @@ class CI_Cache_file extends CI_Driver { */ public function delete($id) { - return unlink($this->_cache_path.$id); + try { + return unlink($this->_cache_path.$id); + } catch (\ErrorException $e) { + return false; + } } // ------------------------------------------------------------------------ |