Skip to content

Commit

Permalink
chore(core): partial discovery cache toggling improvements (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-casey committed Nov 25, 2024
1 parent 36c58f7 commit fc1a675
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/DiscoveryGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ public function generateDiscoveryCache(DiscoveryCacheStrategy $strategy): void

private function resolveDiscoveryCacheStrategy(): DiscoveryCacheStrategy
{
$cache = env('CACHE');

if ($cache !== null) {
return DiscoveryCacheStrategy::make($cache);
}

return DiscoveryCacheStrategy::make(env('DISCOVERY_CACHE'));
}

Expand Down

0 comments on commit fc1a675

Please sign in to comment.