Caching problem: expire_page not working

Hi all,

I’m new to rails and I’ve run in to a rather insidious bug. In
development (with caching turned on in development.rb), my app
successfully caches action “index” in controller “view”:

class ViewController < ApplicationController
caches_page :index
def index
# do the stuff that index does
end
end

I’ve got a sweeper running in a different controller (“admin”) which
expires view::index when changes are made to the underlying data. The
following line of codes in the sweeper don’t seem to work:

def expire_view(model)
model.logger.info(“Expiring the cached index”)
expire_page(:controller => “view”, :action => “index”)
end

Rather, I should say that “Expiring the cached index” is being logged
properly, but the page isn’t being expired. Am I missing something?

Thanks!

Brent