diff --git a/common/framework/drivers/cache/dummy.php b/common/framework/drivers/cache/dummy.php index 5ff40a93f..7818afa58 100644 --- a/common/framework/drivers/cache/dummy.php +++ b/common/framework/drivers/cache/dummy.php @@ -179,5 +179,6 @@ class Dummy implements \Rhymix\Framework\Drivers\CacheInterface public function clear() { $this->data = array(); + return true; } } diff --git a/common/framework/drivers/cache/file.php b/common/framework/drivers/cache/file.php index 31a1a3403..6159461e2 100644 --- a/common/framework/drivers/cache/file.php +++ b/common/framework/drivers/cache/file.php @@ -171,7 +171,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface */ public function clear() { - Storage::deleteDirectory($this->_dir); + return Storage::deleteDirectory($this->_dir) ? true : false; } /** diff --git a/common/framework/drivers/cache/sqlite.php b/common/framework/drivers/cache/sqlite.php index 6ae190252..11d8615d3 100644 --- a/common/framework/drivers/cache/sqlite.php +++ b/common/framework/drivers/cache/sqlite.php @@ -242,5 +242,7 @@ class SQLite implements \Rhymix\Framework\Drivers\CacheInterface { $this->_dbh->exec('CREATE TABLE cache_' . $i . ' (k TEXT PRIMARY KEY, v TEXT, exp INT)'); } + + return true; } }