* if($this->beginCache('cacheName',array('property1'=>'value1',...)) * { * // ... display the content to be cached here * $this->endCache(); * } *
array('GET')
* function foo($cache) { ... } *
* array( * 'class'=>'CDbCacheDependency', * 'sql'=>'SELECT MAX(lastModified) FROM Post', * ) *