I want to find the total score of the loggedin user & want to cache it. My code is:
$dependency = new CDbCacheDependency(\'SELECT MAX(id) FROM tbl_points
the best way to find out that query results come from cache or database is that to turn on logging as follow and see the results
'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), array( 'class'=>'CWebLogRoute', ), ), ),