oligalma
(Marc Oliveras)
1
To achieve caching I put this piece of code in Controller.php
public function filters()
{
return array(
array(
'CHttpCacheFilter',
'lastModified'=>'1421575040',
),
);
}
It works on normal page but it doesn’t work on modules. Why?
redguy
(Maciej Lizewski)
2
maybe controllers there override filters() method without merging it with parent::filters() ?
oligalma
(Marc Oliveras)
3
I wrote the following and it works! thanks
/**
* @return array action filters
*/
public function filters()
{
$filters = array(
'accessControl', // perform access control for CRUD operations
);
return array_merge($filters, parent::filters());
}
shiyang
(Dr Pioge)
4
I have a problem.when I use page cache,I can not submit the form.why?
oligalma
(Marc Oliveras)
5
I also experienced the same problem. Let’s see if someone knows the solution to this problem.
redguy
(Maciej Lizewski)
6
do you submit with POST or GET?
is there any request generated (in firebug) or there is no action at all?
oligalma
(Marc Oliveras)
7
Concretely, I had problems logging in when cache is active.