提交 5f59057b 编写于 作者: T Terry

appserver cms article controller: 缓存参数调整

上级 a94d68e1
......@@ -79,14 +79,14 @@ class ArticleController extends AppserverController
}
$store = Yii::$service->store->currentStore;
$currency = Yii::$service->page->currency->getCurrentCurrency();
$langCode = Yii::$service->store->currentLangCode;
$behaviors[] = [
'enabled' => true,
'class' => 'yii\filters\PageCache',
'only' => ['index'],
'duration' => $timeout,
'variations' => [
$store, $currency, $get_str, $article_id,
$store, $currency, $get_str, $article_id,$langCode
],
//'dependency' => [
// 'class' => 'yii\caching\DbDependency',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册