summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-28 00:52:32 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-28 18:09:46 +0200
commit130b0c708e5cba8f8bd5b1e4d760c2f48c22c71d (patch)
tree1c1e86da0017f80f5d76707c0cae473fc25d5b4a /system/libraries/Cache/drivers
parent2b6f5f117a2044707c649cb892ac5fb5a72a9805 (diff)
Fix error when removing missing entries from file cache
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'system/libraries/Cache/drivers')
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php6
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;
+ }
}
// ------------------------------------------------------------------------