Skip to content

Instantly share code, notes, and snippets.

@gleuch
Created May 18, 2009 04:39
Show Gist options
  • Save gleuch/113319 to your computer and use it in GitHub Desktop.
Save gleuch/113319 to your computer and use it in GitHub Desktop.
script/console code snippet to expire cache fragments
# 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