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
json.cache! "key_name", expires_in: 10.minutes, force: force? do
where force? is a method that returns a boolean. If force was true then rails would generate and write the cache. This is broken when I upgrade to 2.6 and greater.
I tried using cache_if! as a workaround but it doesn't expire the cache. Is this a bug or an intentional change?
The text was updated successfully, but these errors were encountered:
In versions 2.5.0 and older you could do
json.cache! "key_name", expires_in: 10.minutes, force: force? do
where force? is a method that returns a boolean. If force was true then rails would generate and write the cache. This is broken when I upgrade to 2.6 and greater.
I tried using cache_if! as a workaround but it doesn't expire the cache. Is this a bug or an intentional change?
The text was updated successfully, but these errors were encountered: