Skip to content

Commit 9421926

Browse files
committed
fix commands without tags
1 parent 1dacc29 commit 9421926

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.4",
18+
"php": "^7.4|^8.0",
1919
"guzzlehttp/guzzle": "^7.3",
2020
"illuminate/contracts": "^8.0",
2121
"spatie/laravel-package-tools": "^1.4.3"

src/Commands/ClearCacheCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<?php
22
namespace Apsg\Wordpressor\Commands;
33

4-
use Apsg\Wordpressor\CacheHelper;
54
use Illuminate\Console\Command;
65
use Illuminate\Support\Facades\Cache;
76

87
class ClearCacheCommand extends Command
98
{
109
protected $signature = 'wordpressor:clear';
11-
protected $description = 'Clear Wordpressor\'s cache, i.e. after new post was added';
10+
protected $description = 'Clear cache, i.e. after new post was added';
1211

1312
public function handle()
1413
{
15-
Cache::tags([CacheHelper::PREFIX])->clear();
14+
Cache::flush();
1615

1716
$this->info('Cleared');
1817
}

0 commit comments

Comments
 (0)