Skip to content

Commit 712bb6a

Browse files
committed
fix(icon): respect enabled flag in cache clear
1 parent bcd5e5a commit 712bb6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/icon/src/IconCache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public function get(string $key): mixed
4343

4444
public function clear(): void
4545
{
46+
if (! $this->enabled) {
47+
return;
48+
}
49+
4650
$this->pool->clear();
4751
}
4852

0 commit comments

Comments
 (0)