Skip to content

Commit 5af44bf

Browse files
committed
Use identifier value in remote custom field cache key
1 parent 562acd3 commit 5af44bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Models/RemoteType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function fetchData(?string $value = null, bool $search = false)
8080

8181
public function getRemoteData(?string $identifierValue = null)
8282
{
83-
$cacheKey = 'remote_custom_field_' . $this->id;
83+
$cacheKey = 'remote_custom_field_' . $this->id . '_' . $identifierValue;
8484
if (config('asseco-custom-fields.should_cache_remote') && Cache::has($cacheKey)) {
8585
return Cache::get($cacheKey);
8686
}

0 commit comments

Comments
 (0)