Yii Framework Forum: flush controller cache - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

flush controller cache for particular action or some other parameters Rate Topic: -----

#1 User is offline   RusAlex 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 54
  • Joined: 23-August 10

Posted 21 March 2011 - 10:13 AM

How can i implement flushing particular cache for particular get request for controller if controller has next code:

public function filters()
    {
            return array(
                    array(
                            'COutputCache -Search -Captcha',
                            'duration'=>86400*31,
                            'varyByParam'=>array('product_slug'),
                            'varyByRoute'=>true,
                            'requestTypes'=>array('GET'),
                            'varyByExpression'=>"Yii::app()->user->hasFlash('contact')"
                    ),
            );
    }


How can i flush cache only for particular get request?
0

#2 User is offline   RusAlex 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 54
  • Joined: 23-August 10

Posted 21 March 2011 - 06:09 PM

nobody knows ?
0

#3 User is offline   RusAlex 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 54
  • Joined: 23-August 10

Posted 27 March 2011 - 04:28 PM

I solved and wrote this wiki page
how to invalidate specific page
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users