Skip to content

Instantly share code, notes, and snippets.

@kris
Created June 15, 2009 21:04
Show Gist options
  • Save kris/130342 to your computer and use it in GitHub Desktop.
Save kris/130342 to your computer and use it in GitHub Desktop.
ActiveSupport::Cache::FileStore.class_eval do
def delete(name, options = nil)
puts "Real Filename: #{real_file_path(name)}"
super
File.delete(real_file_path(name))
rescue SystemCallError => e
puts "Failed to delete cache. #{e.message}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment