Skip to content

Commit

Permalink
Merge pull request #186 from IQ-JYe/master
Browse files Browse the repository at this point in the history
Fixed remove empty cache entry method
  • Loading branch information
mikebronner authored Nov 1, 2021
2 parents 55ab04e + 9d06ba7 commit 6ed10dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ProviderAndDumperAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ protected function preventCacheKeyHashCollision(
protected function removeEmptyCacheEntry(Collection $result, string $cacheKey)
{
if ($result && $result->isEmpty()) {
app('cache')->forget($cacheKey);
app('cache')
->store(config('geocoder.cache.store'))
->forget($cacheKey);
}
}

Expand Down

0 comments on commit 6ed10dc

Please sign in to comment.