Skip to content

Commit 577e80e

Browse files
authored
Cf fix remote cache (#109)
cache_remote only if not $identifierValue. some remote sources does not return all the data
1 parent 90fa613 commit 577e80e

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
@@ -81,7 +81,7 @@ private function fetchData(?string $value = null, bool $search = false)
8181
public function getRemoteData(?string $identifierValue = null)
8282
{
8383
$cacheKey = 'remote_custom_field_' . $this->id;
84-
if ((bool) $identifierValue && config('asseco-custom-fields.should_cache_remote') && Cache::has($cacheKey)) {
84+
if (!$identifierValue && config('asseco-custom-fields.should_cache_remote') && Cache::has($cacheKey)) {
8585
return Cache::get($cacheKey);
8686
}
8787

0 commit comments

Comments
 (0)