-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from mitydigital/feature/scheduled-cache-inval…
…idator Listen for ScheduledCacheInvalidated event
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace MityDigital\Sitemapamic\Listeners; | ||
|
||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Support\Arr; | ||
use Illuminate\Support\Facades\Artisan; | ||
use Illuminate\Support\Facades\Cache; | ||
use MityDigital\Sitemapamic\Commands\ClearSitemapamicCacheCommand; | ||
use Statamic\Events\EntrySaved; | ||
|
||
class ScheduledCacheInvalidated implements ShouldQueue | ||
{ | ||
public function handle(\MityDigital\StatamicScheduledCacheInvalidator\Events\ScheduledCacheInvalidated $event) { | ||
Artisan::call(ClearSitemapamicCacheCommand::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters