Use Cache in Yii 1.0

{Methods}

There are three methods in Yii for cache, normal cache, fregment cache, and page cache.

 

{Code Example}

here is the link

 

{Boy Say}

EN : follow the code demo, everything is easy to use, the only thing u need to do is choose one and make some change.

set duration for the time to duration.

set dependency for a sepcial rule to keep cache update or die

set varyByParam to decide which will be deferent cache in the same url

 

{Link more detail} 

http://www.yiiframework.com/doc/guide/1.1/en/caching.overview