diff --git a/src/Cache.php b/src/Cache.php index 7b9381a..12b4320 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -29,7 +29,7 @@ class Cache */ public function __construct(CacheManager $cache, $tags, $expires = 30) { - $this->cache = $tags ? $cache->tags($tags) : $cache; + $this->cache = $tags && ! in_array($cache->getDefaultDriver(), ['file', 'database']) ? $cache->tags($tags) : $cache; $this->expires = $expires; } @@ -71,4 +71,4 @@ public function flush() { return $this->cache->flush(); } -} \ No newline at end of file +}