yiisoft/yii — pull request #1403 by pavlepredic (2012-09-14 11:11:51+00:00)
Title: CCache improvements

Added CCache::contains() method for checking if key exists in cache. Also modified child classes accordingly. Modified CDbCommand::queryInternal() to check if cached key exists using the new contains() method. This way, empty resultsets will also be cached.

See this post for more info:
http://www.yiiframework.com/forum/index.php/topic/31583-query-cache-and-ar