diff --git a/src/App/Models/RemoteType.php b/src/App/Models/RemoteType.php index f00499b..3da716a 100644 --- a/src/App/Models/RemoteType.php +++ b/src/App/Models/RemoteType.php @@ -81,7 +81,7 @@ private function fetchData(?string $value = null, bool $search = false) public function getRemoteData(?string $identifierValue = null) { $cacheKey = 'remote_custom_field_' . $this->id; - if ((bool) $identifierValue && config('asseco-custom-fields.should_cache_remote') && Cache::has($cacheKey)) { + if (!$identifierValue && config('asseco-custom-fields.should_cache_remote') && Cache::has($cacheKey)) { return Cache::get($cacheKey); }