- // This is crazy-talk. If you've got an environment setup where you might
- // be investigating this, fix your preferred cache driver by
- // replacing `NaiveHasTrait` with a decent function.
- $hasDefaultA = ($this->get($key, NULL) === NULL);
- $hasDefaultB = ($this->get($key, 123) === 123);
- return !($hasDefaultA && $hasDefaultB);
+ $nack = CRM_Utils_Cache::nack();
+ $value = $this->get($key, $nack);
+ return ($value !== $nack);