fix: guard cache hit with instanceof to handle stale LocationResult entries
This commit is contained in:
@@ -28,7 +28,7 @@ class PostcodeService
|
||||
|
||||
$cached = Cache::get($cacheKey);
|
||||
|
||||
if ($cached !== null) {
|
||||
if ($cached instanceof LocationResult) {
|
||||
return $cached;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user