i dont know what’s the problem
all my actions in the controller and action function related views were cached
so the other users will see the same cached view
listed below are my settings in my yii
anyone could give me some advice what’s going wrong ?
especailly the last poi controller will cache the other controller’s view, so terrible
/protected/config/main.php
'cache' => array (
'class' => 'CFileCache',
'directoryLevel' => 1,
),
/protected/modules/home/controllers/DefaultController.php
//file cache
public function filters()
{
return array(
array(
'COutputCache + index',
'duration' => ($_GET['nocache']) ? 0 : 86400,
'varyByExpression' => Yii::app()->user->id,
),
);
}
/protected/modules/poi/controllers/StageController.php
public function filters()
{
return array(
array(
'COutputCache + Index',
'duration' => ($_GET['nocache']) ? 0 : 86400,
'varyByExpression' => Yii::app()->user->id,
),
array(
'COutputCache + View',
'duration' => ($_GET['nocache']) ? 0 : 86400,
'varyByParam' => array('id'),
'varyByExpression' => Yii::app()->user->id,
),
array(
'COutputCache + List',
'duration' => ($_GET['nocache']) ? 0 : 86400,
'varyByExpression' => yii::app()->request->requestUri,
),
);
}