protected function calculateCacheKey() { $key = [__CLASS__]; if ($this->varyByRoute) { $key[] = Yii::$app->requestedRoute; } if (is_array($this->variations)) { foreach ($this->variations as $value) { $key[] = $value; } } return $key; }