# Page caching

**URL:** <https://www.ruby-forum.com/t/page-caching/85399>\
**Category:** Rails\
**Created:** [March 22, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/page-caching/85399 "2006-03-22T17:44:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tachekent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Post date:** [March 22, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/page-caching/85399/1 "2006-03-22T17:44:41Z")

</div>

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
