Forum: Ruby on Rails cache problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 joe-black <allenbobo@gmail.com> <allenbobo@gmail.c (Guest)
on 2005-12-02 14:18
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
E41323ad83e8d2de9f28ef5cbe118734?d=identicon&s=25 rwvtveer (Guest)
on 2005-12-02 17:16
(Received via mailing list)
joe-black <allenbobo@...> <allenbobo <at> 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/ActionControlle...
for more
details.

HTH,
Remco


--
http://blog.remvee.net/
This topic is locked and can not be replied to.