Skip to content

Commit ca35827

Browse files
committed
Can always clear term caches
1 parent a2e32e3 commit ca35827

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Actions/ClearCache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public function visibleTo($item)
4343
return false;
4444
}
4545

46+
if ($item instanceof Term) {
47+
return true;
48+
}
49+
4650
return ! Blink::once(
4751
'cache-action::'.$item->collectionHandle.'::'.$item->locale(),
4852
fn () => is_null($item->collection()->route($item->locale()))

0 commit comments

Comments
 (0)