yiisoft/yii — pull request #2034 by resurtm (2013-01-24 13:52:30+00:00)
Title: CDbConnection::cache() and CActiveRecord::cache() now accepts array typed cache dependency parameter

```php
// before
$models=CActiveRecord::model()
->cache(3600,new CChainedCacheDependency([
Post::model()->cacheDependency,
Comment::model()->cacheDependency,
]))
->findAll();

// after, minus 29 characters
$models=CActiveRecord::model()
->cache(3600,[
Post::model()->cacheDependency,
Comment::model()->cacheDependency,
])
->findAll();
```