I noticed in testing that the cache sometimes automatically gets updated after insertions, but i don't know when the field in the cache gets updated, and when it doesn't.
For example, doing just puts seems to get me the old, cached value, but running inspect seems to give an updated value?
puts Rails.cache.fetch("GraphQL::Cache:Query:restaurants:ids:#{de_moete.id}").inspect doesn't seem to cache the value, but without the inspect it does seem to get cached?
I noticed in testing that the cache sometimes automatically gets updated after insertions, but i don't know when the field in the cache gets updated, and when it doesn't.
For example, doing just puts seems to get me the old, cached value, but running inspect seems to give an updated value?
puts Rails.cache.fetch("GraphQL::Cache:Query:restaurants:ids:#{de_moete.id}").inspectdoesn't seem to cache the value, but without the inspect it does seem to get cached?