Auto caching AR for Yii.