Caching
Caching data is a great method for helping to improve the performance of a production web application. If there is specific content that is not expected to change upon every request, using the cache to store and serve this content can save the time it takes to retrieve and process that data.
Yii provides for some nice features when it comes to caching. The tour of Yii's caching features will begin with configuring a cache application component. Such a component is one of several child classes extending CCache, the base class for cache classes with different cache storage implementations.
Yii provides many different specific cache component class implementations that store the data utilizing different approaches. The following is a list of the current cache implementations that Yii provides as of version 1.1.2:
CMemCache: Uses the PHPmemcacheextension.CApcCache: Uses the PHPAPCextension.CXCache: Uses PHPXCacheextensionCEAcceleratorCache: Uses the PHPEAcceleratorextension.CDbCache...