I want to cache the the cell hourly / daily / monthly based on a model attribute value (which is a time)
But it seems the caching occurs when should_be_cached_monthly is true
This is discovered by caching spec not failing when the method name for cache key is wrong
I am pretty sure you can call cache only once, or when multiple times, the last one wins. We could think about making the options dynamic, e.g. ->(options) { expires_in: logic_to_find_out }.
I got something like this in a concept cell:
I want to cache the the cell hourly / daily / monthly based on a model attribute value (which is a time) But it seems the caching occurs when
should_be_cached_monthly
istrue
This is discovered by caching spec not failing when the method name for cache key is wrong