I’m having a bear of a time getting my cached pages to expire. Maybe
one of you guys can help me out. I’ll show my sweeper and then my log
to show that it “should” be working.
class PragmaticSweeper < ActionController::Caching::Sweeper
logger.error(“I made it to the caching method in the SWEEPER!!!”)
expire_action(:controller => ‘pragmatic’,
:action => ‘view’,
:id => post_id)
and now here’s my log that shows that the expiration “should” be
SQL (0.000369) INSERT INTO comments (
‘bbbbbbbbbbbbbbbbbbb’, ‘2006-04-08 19:46:25’, 56, ‘’,
I made it to the caching method in the SWEEPER!!!
Expired fragment: banjo.dnsdojo.org:9999/pragmatic/view/56 (0.00024)