We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b049dd9 commit 34e0d2dCopy full SHA for 34e0d2d
packages/icon/src/IconCacheInitializer.php
@@ -15,18 +15,16 @@ final class IconCacheInitializer implements Initializer
15
public function initialize(Container $container): IconCache
16
{
17
return new IconCache(
18
- enabled: $this->shouldCacheBeEnabled(
19
- $container->get(AppConfig::class)->environment->isProduction(),
20
- ),
+ enabled: $this->shouldCacheBeEnabled(),
21
);
22
}
23
24
- private function shouldCacheBeEnabled(bool $isProduction): bool
+ private function shouldCacheBeEnabled(): bool
25
26
if (env('INTERNAL_CACHES') === false) {
27
return false;
28
29
30
- return (bool) env('ICON_CACHE', default: $isProduction);
+ return (bool) env('ICON_CACHE', default: true);
31
32
0 commit comments