Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d06ba7

Browse files
authored
Fixed remove empty cache entry method
It didn't actually remove the cache entry because cache store was not specified.
1 parent 55ab04e commit 9d06ba7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ProviderAndDumperAggregator.php

Lines changed: 3 additions & 1 deletion
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)