diff --git a/flextype/core/Cache.php b/flextype/core/Cache.php index 30205090..c5fb1fef 100755 --- a/flextype/core/Cache.php +++ b/flextype/core/Cache.php @@ -356,6 +356,18 @@ class Cache $this->driver->save($id, $data, $lifetime); } + /** + * Delete item from the chache + */ + public function delete(string $id) : void + { + if (! $this->flextype['registry']->get('settings.cache.enabled')) { + return; + } + + $this->driver->delete($id); + } + /** * Clear Cache */