Forum: Ruby on Rails page caching

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.
Dorian M. (Guest)
on 2006-03-22 18:44
(Received via mailing list)
I'm trying to use the following methods (extract):

expire_page :controller => "site", :action => "funding"
cache_page  :controller => "site", :action => "welcome"

to rebuild my entire site cache from an admin page, but I can't seem to
get the cache_page function to work. looking at the docs there seem to
be 2 versions of cache_page, one controlled by an options list the other
one by a path. Both of these methods expect a content parameter, but I
want it to cache as it would after caches_page. The options above are
the same parameters passed through from the routes file that get
successfully cached using the caches_page option.

Is it possible to use cache_page like this? or am I jumping the gun, or
just doing it wrong...

dorian

--
I do things for love or money
This topic is locked and can not be replied to.