/** * Returns the cache id * * @return string */ public function cacheId($lang = null) { if (is_null($lang)) { $lang = $this->site->language->code; } return $lang . '.' . parent::cacheId(); }