We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1795514 commit 8f7fb57Copy full SHA for 8f7fb57
framework/filters/PageCache.php
@@ -334,7 +334,7 @@ protected function calculateCacheKey()
334
$key[] = Yii::$app->requestedRoute;
335
}
336
337
- if ($this->variations instanceof Closure || (is_array($this->variations) && is_callable($this->variations))) {
+ if ($this->variations instanceof Closure) {
338
$variations = call_user_func($this->variations, $this);
339
} else {
340
$variations = $this->variations;
0 commit comments