rails-api/active_model_serializers — pull request #546 by zlx (2014-04-16 02:05:44+00:00)
Title: New Cache strategy: Only cache the attributes of AMS

New Cache Strategy: Only cache the attributes of AMS

I think It's better to manage attributes only for AMS.

example:

```
imagine we have an AMS A, which contain AMS B, which contain AMS C.

If I fetch json from A,
It will read A's attributes cache + B's result
B's result = B's attributes cache + C's result
C's result = C's attribute cache

therefore, it can manage cache by itself object and reusing the cache as far as possible

If B's cache expired, C's cache and A's cache is still work, it will lead to as little computation as possible
```