Topic: [Problem] [Rails.cache] [:file_store]
Hello all
I am using developement environment with file_store.
I have the following:
Product Model:
def self.all_cached
Rails.cache.fetch('product.all') {all}
end
This works fine, it writes on cache files.
But, if I call Product.all_cached, it returns a string. Why this does not return objects?