How to using cache with this code:
config:
'cache'=>array(
'class'=>'CFileCache',
),
controller:
$table1 = $command -> select('*') -> from("{{table1}}") -> where('id=:wid', array(':wid' => $id)) -> queryRow();
$command -> reset();
$table2 = $command -> select('*') -> from("{{table2}}") -> where('id=:wid', array(':wid' => $id)) -> queryRow();
$command -> reset();