yiisoft/yii — pull request #780 by DaSourcerer (2012-06-04 15:16:07+00:00)
Title: Refactoring of cache serialization

I know qiang won't like this. But still: I feel it should at least be discussed.

This is a follow-up to yiisoft/yii#369 and yiisoft/yii#641: We've now got two properties in `CCache` that control three types of serialization for cache contents. Each time a value gets serialized or unserialized, there are several conditionals to be checked first. If another serialization method is to be set in place, the subclasses of `CCache` need to be extended. Potentially several of them. There really should be a better way for this.

This pull request introduces a new serializer component for each type of serialization. Oh, and sorry for the quality of this PR, but I've been a bit in a hurry.