/** * Return the cache key name for the current table, language and domain. * * @return string */ protected function cacheKey() { if ($this->cacheKey === null) { $this->cacheKey = CacheKey::behavior($this) . '_' . CacheKey::table($this->_table); } return $this->cacheKey; }
/** * Return the cache key name for the current table, language and domain. * * @return string */ public function cacheKey() { if ($this->cacheKey === null) { $this->cacheKey = implode('_', [CacheKey::behavior($this), CacheKey::table($this->_table), strtolower(ini_get('intl.default_locale')), $this->config('domain')]); } return $this->cacheKey; }