Houen
Houen

Reputation: 1059

Rails cache :duration not expiring

I have this in my HAML view:

- cache "home", :duration => 15.minutes do
...etc...

But after waiting 15 minutes, the page has not updated. It looks like the duration cache is not working... What can it be? Is there something else I need to do to use :duration on my cache?

Upvotes: 0

Views: 106

Answers (1)

Nick Kugaevsky
Nick Kugaevsky

Reputation: 2945

Try to use hash option below instead of :duration

:expires_in => 15.minutes

Upvotes: 2

Related Questions