oj_serializers icon indicating copy to clipboard operation
oj_serializers copied to clipboard

Caching doesn't seem to work correctly

Open ekampp opened this issue 1 year ago • 0 comments

Hey 👋🏼

First off, this is a great gem! I have enjoyed working with it.

I started caching my serializer using the cached macro. As I understand from the documentation, that would use the cache_key on the resource.

It does cache the first time I serialize the resource. Then I updated the resource and serialized it again. The second serialization uses the cached JSON, even though the resource has been updated.

Thanks, Emil

ekampp avatar May 07 '23 07:05 ekampp