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", 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); 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 { /* |--------------------------------------------------------------------------