Hi all
I try to cache page
…
caches_pag :test
…
I want expire cache now.
so i turn off environment cache switch
and comments above code
but, doesn’t work
what’s going on?
all regards
Hi all
I try to cache page
…
caches_pag :test
…
I want expire cache now.
so i turn off environment cache switch
and comments above code
but, doesn’t work
what’s going on?
all regards
joe-black <allenbobo@…> <allenbobo gmail.c <allenbobo@…>
writes:
I want expire cache now.
so i turn off environment cache switch
and comments above code
Rails cache writes HTML pages to the public directory in you
application. To
expire your cache these files need to be removed. You can do this by
removing
them manually, be careful not to remove any static assets. Or you can
use the
expire_page method in your controller. See
http://api.rubyonrails.com/classes/ActionController/Caching/Pages.html
for more
details.
HTH,
Remco
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs