Why page and action doesnt works with expires_in? It worked for me in
ealier versions of rails, how to do it in Rails 3.1?
I dont want to use cache stores(mem cache or dalli)
Page caching just saves files to disk (with the assumption that the
web server serves these without touching rails). This just doesn't
support time base expiry on its own - there is no code that gets run
when serving such a file to check whether the cache is still valid
(although you could of course have some external bit of code that
deletes old files from the cache directory).
caches_action should work though, assuming that the underlying cache
store used by action caching supports expiry (I don't believe file
store does).