Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91ed196

Browse files
authored
Also flush cache on form change (#203)
1 parent fbe662c commit 91ed196

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/StaticCaching/CustomInvalidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Statamic\Eloquent\Structures\Nav;
88
use Statamic\Eloquent\Structures\NavTree;
99
use Statamic\Entries\Entry;
10+
use Statamic\Forms\Form;
1011
use Statamic\StaticCaching\DefaultInvalidator;
1112
use Statamic\Support\Str;
1213

@@ -18,6 +19,7 @@ public function invalidate($item)
1819
$item instanceof GlobalSet
1920
|| $item instanceof Nav
2021
|| $item instanceof NavTree
22+
|| $item instanceof Form
2123
|| $this->rules === 'all'
2224
) {
2325
Cache::flush();

0 commit comments

Comments
 (0)