Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

delete cache key with delete, instead of read!

  • Loading branch information...
commit 2486e76a30d450b2c3a9c8ea146db7740498037c 1 parent a39a53d
@unixcharles authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/translation.rb
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.