Skip to content

Commit 34e0d2d

Browse files
authored
fix(icon): enable icon cache by default (#1339)
1 parent b049dd9 commit 34e0d2d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/icon/src/IconCacheInitializer.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ final class IconCacheInitializer implements Initializer
1515
public function initialize(Container $container): IconCache
1616
{
1717
return new IconCache(
18-
enabled: $this->shouldCacheBeEnabled(
19-
$container->get(AppConfig::class)->environment->isProduction(),
20-
),
18+
enabled: $this->shouldCacheBeEnabled(),
2119
);
2220
}
2321

24-
private function shouldCacheBeEnabled(bool $isProduction): bool
22+
private function shouldCacheBeEnabled(): bool
2523
{
2624
if (env('INTERNAL_CACHES') === false) {
2725
return false;
2826
}
2927

30-
return (bool) env('ICON_CACHE', default: $isProduction);
28+
return (bool) env('ICON_CACHE', default: true);
3129
}
3230
}

0 commit comments

Comments
 (0)