From 9d06ba7a643db859ec1831fe2d21801d161a8a0a Mon Sep 17 00:00:00 2001 From: Jiong Ye Date: Fri, 16 Jul 2021 11:12:26 -0400 Subject: [PATCH] Fixed remove empty cache entry method It didn't actually remove the cache entry because cache store was not specified. --- src/ProviderAndDumperAggregator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ProviderAndDumperAggregator.php b/src/ProviderAndDumperAggregator.php index a1909c0..a5c07c9 100644 --- a/src/ProviderAndDumperAggregator.php +++ b/src/ProviderAndDumperAggregator.php @@ -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); } }