I need to get expire or creation time for cache entry.
This is for: sitemap index, each sitemap in index is cached action. I want to add
<lastmod>
attribute, which, in my case, will be cache entry creation time.
For example for action caching:
class ProductsController < ActionController
caches_action :index
def index
@products = Product.all
end
end
I need something like this:
Rails.cache.get(:controller=>'products',:action=>'index').created_at