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
Likewise, you can use `cache_key: { include_arguments: […] }` to specify an allowlist of arguments
175
+
to be included in the cache key. In this case all arguments for the cache key must be specified, including
176
+
parent arguments of nested fields.
177
+
150
178
### User-provided cache key (custom key)
151
179
152
180
In most cases you want your cache key to depend on the resolved object (say, `ActiveRecord` model). You can do that by passing an argument to the `#cache_fragment` method in a similar way to Rails views [`#cache` method](https://guides.rubyonrails.org/caching_with_rails.html#fragment-caching):
0 commit comments