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.


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.

Thanks Softark, Wiki article is quite helpful.