How To Cache Cdbcriteria/cactivedataprovider Query

Hi - I need to cache the query. I’m using CDBCritera and passing this criteria to CActiveDataProvider class. Which in turn providing results to me. How I can attach cache at here?

Please suggest.

Thanks,

Hi Guys - anyone with any suggestion?

Thanks in Advance.

Ravi Verma

Hi Ravi,

Take a look at this part of the guide.

Query Caching

And the following wiki article.

http://www.yiiframework.com/wiki/233/using-cache-in-cactivedataprovider

Thanks Softark, Wiki article is quite helpful.