Created
May 18, 2009 04:39
-
-
Save gleuch/113319 to your computer and use it in GitHub Desktop.
script/console code snippet to expire cache fragments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How-to expire memcache cache fragment files from script/console | |
Item.find(:all).each{|m| ActionController::Base.new.expire_fragment("item/#{m.id}")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment