Page Caching

hello everybody

I need to use pages caching, but I don’t know how to begin… As I understand, I must customize the config file and add method “filters” to the controller…

Am I right?

If to say shortly, I need to save the whole page in a certain directory.

help me please: what code should I write in the config file and in the controller?

Hi my friend

There are data, fragment and page caching

http://www.yiiframework.com/doc/guide/1.0/en/caching.data

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

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

for configuration see

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

Best regards

thanks!

where I need to specify the cache directory: config file or controller filters method?

ie = where I need to write ‘cachePath’=>’/cache/’ ?

You normally don’t.

Read the docs, please.