Best Way To Use Cache For Multiple Querys (Active Record) For A Dynamic View

Hi everyone, I wan’t to use cache for my main page, this page loads different data because is dynamic but I think that I should use cache to improve the performance.

Can u help me?

Thanks!

Hi

there are many way to cache according to your needs

  1. Data Caching

2)Fragment Caching

  1. Page Caching

read carefully this docmentation and pick up the appropriate

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