views:

251

answers:

1

It's very strange that the session will never expire if i use memcached store even i set
config.action_controller.session :session_expires => 1.seconds.from_now

And I use extended_fragment_cache to cache fragment, I meet the same problem

<% Cache "my_page", {:expires => 1.minutes} do ... %>

never expired!

Anyone know where's the problem?

A: 

I change the codes to

ActionController::Base.session_options[:expire_after] = 1.seconds

<% Cache "my_page", {:expires_in=> 1.minutes} do ... %>

and everything now.

pickerel