Follow Along as I Stumble on the Path to Learning RoR

Posts tagged “expire

Expiring a Cache from a Model

I was having trouble expiring a cache from a model.  When I tried just: expire_fragment, I received an error.

I luckily found this post by Michael Mahemoff and found the syntax I needed:

ActionController::Base.new.expire_fragment()

Advertisements