ElMassimo / ElMassimo/oj_serializers

Caching doesn't seem to work correctly

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
166
Forks
9
Avg merge
6h 20m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.