Page caching

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