Skip to content

Commit 6ed10dc

Browse files
authored
Merge pull request #186 from IQ-JYe/master
Fixed remove empty cache entry method
2 parents 55ab04e + 9d06ba7 commit 6ed10dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ProviderAndDumperAggregator.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ protected function preventCacheKeyHashCollision(
320320
protected function removeEmptyCacheEntry(Collection $result, string $cacheKey)
321321
{
322322
if ($result && $result->isEmpty()) {
323-
app('cache')->forget($cacheKey);
323+
app('cache')
324+
->store(config('geocoder.cache.store'))
325+
->forget($cacheKey);
324326
}
325327
}
326328

0 commit comments

Comments
 (0)