summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cd3fc33)
Instead of doing wildcard cache expiry, just iterate over the
available locales, expiring the requested entry in each locale.
##
# extend expire_action to expire all variants
def expire_action(options = {})
##
# extend expire_action to expire all variants
def expire_action(options = {})
- path = ActionCachePath.path_for(self, options, false).gsub('?', '.').gsub(':', '.')
- expire_fragment(Regexp.new(Regexp.escape(path) + "\\..*"))
+ I18n.available_locales.each do |locale|
+ super options.merge(:locale => locale)
+ end