Permalink
Browse files

delete cache key with delete, instead of read!

  • Loading branch information...
unixcharles committed May 26, 2011
1 parent a39a53d commit 2486e76a30d450b2c3a9c8ea146db7740498037c
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/translation.rb
@@ -22,7 +22,7 @@ def self.cache_read(name, locale, untranslated)
end
def self.cache_expire(name, locale, untranslated)
- Rails.cache.read(cache_key(name, locale, untranslated), nil)
+ Rails.cache.delete(cache_key(name, locale, untranslated))
end
def self.cache_write(name, locale, untranslated, value)

0 comments on commit 2486e76

Please sign in to comment.