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

Skip to content

Commit fbe662c

Browse files
authored
Also flush application cache on global flush (#201)
1 parent 515710c commit fbe662c

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
@@ -2,6 +2,7 @@
22

33
namespace Rapidez\Statamic\StaticCaching;
44

5+
use Illuminate\Support\Facades\Cache;
56
use Statamic\Eloquent\Globals\GlobalSet;
67
use Statamic\Eloquent\Structures\Nav;
78
use Statamic\Eloquent\Structures\NavTree;
@@ -19,6 +20,7 @@ public function invalidate($item)
1920
|| $item instanceof NavTree
2021
|| $this->rules === 'all'
2122
) {
23+
Cache::flush();
2224
return $this->cacher->flush();
2325
}
2426

0 commit comments

Comments
 (0)