Skip to content

Commit 7809f9d

Browse files
jpscharfroshangautam
authored andcommitted
[refactor] cache busting
- busts cache when a new task is created to rebuild cache
1 parent 2931c74 commit 7809f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/TotemEventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class TotemEventServiceProvider extends EventServiceProvider
88
{
99
protected $listen = [
10-
'Studio\Totem\Events\Created' => ['Studio\Totem\Listeners\BuildCache'],
10+
'Studio\Totem\Events\Created' => ['Studio\Totem\Listeners\BustCache', 'Studio\Totem\Listeners\BuildCache'],
1111
'Studio\Totem\Events\Updated' => ['Studio\Totem\Listeners\BustCache', 'Studio\Totem\Listeners\BuildCache'],
1212
'Studio\Totem\Events\Activated' => ['Studio\Totem\Listeners\BustCache', 'Studio\Totem\Listeners\BuildCache'],
1313
'Studio\Totem\Events\Deactivated' => ['Studio\Totem\Listeners\BustCache', 'Studio\Totem\Listeners\BuildCache'],

0 commit comments

Comments
 (0)