You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The case for doing this on a per-field basis is interesting but not one I'd thought of. My use case involves a model that changes frequently enough and is sensitive enough that I want to avoid caching its JSON representation at all. But, it would be nice if I could still declare the as_json schema (including different sets of properties, etc.) with a json_fields declaration in the same way as in my Mongoid::CachedJson models.
To summarize: this gem currently provides 2 things: a nice syntax for declaring a model's JSON schema, and caching of those results. Maybe it's worth considering how to offer those separately?
Add an option not to cache specific relationships.
The text was updated successfully, but these errors were encountered: