From 1718ae7045e47f0d7333aede22bc1d2ef1c61771 Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Thu, 9 Jul 2020 15:48:15 +0200 Subject: [PATCH 1/3] Update FileTagSet.php Method https://github.com/laravel/framework/blob/6.x/src/Illuminate/Cache/FileStore.php#L58 returns "null" instead "false" in newest versions of Laravel --- src/Cache/FileTagSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache/FileTagSet.php b/src/Cache/FileTagSet.php index ac566b2..16e1841 100644 --- a/src/Cache/FileTagSet.php +++ b/src/Cache/FileTagSet.php @@ -31,7 +31,7 @@ public function resetTag($name) $oldID = $this->store->get($this->tagKey($name)); - if ($oldID!==false){ + if ($oldID!==false && $oldID!==null){ $job = new FlushTagFromFileCacheJob($oldID, static::$driver); if(!empty($this->store->queue)){ $job->onQueue($this->store->queue); From 8bd0519f35281afec082d728fb9325dce9bc0ddc Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Fri, 17 Jul 2020 00:44:44 +0200 Subject: [PATCH 2/3] Fixes #4 --- src/Jobs/FlushTagFromFileCacheJob.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Jobs/FlushTagFromFileCacheJob.php b/src/Jobs/FlushTagFromFileCacheJob.php index e263822..976538d 100644 --- a/src/Jobs/FlushTagFromFileCacheJob.php +++ b/src/Jobs/FlushTagFromFileCacheJob.php @@ -6,9 +6,8 @@ use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; -use Illuminate\Contracts\Bus\SelfHandling; -class FlushTagFromFileCacheJob implements ShouldQueue, SelfHandling +class FlushTagFromFileCacheJob implements ShouldQueue { /* |-------------------------------------------------------------------------- From bc8e16f3b33fc6f1f6d6323c4dcdb3b395406714 Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Sat, 1 Aug 2020 17:09:15 +0200 Subject: [PATCH 3/3] Remove version --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 08707c8..f7e7755 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "unikent/tfilecache", "description": "Taggable File Cache driver for Laravel. Allows the use of Cache tags with a file cache.", - "version" : "1.0.8", "authors": [ { "name": "gjmh-unikent",