Forum: Ruby on Rails how to write a page to the cache from a cache sweeper

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E1f43bafda26307a050d11902752b2a6?d=identicon&s=25 Ball, Donald A Jr (Library) (Guest)
on 2007-04-13 18:44
(Received via mailing list)
I've got an expensive page which I want to store in the page cache. The
conditions under which it needs to be updated are such that it requires
use of a sweeper object, no challenge there. The wrinkle is this:
instead of simply expiring the page in the sweeper and lazily waiting
until the next user requests the page to generate it, I'd like to go
ahead and regenerate the page in the sweeper. Any tips on how I'd go
about doing that?

- donald
This topic is locked and can not be replied to.