How to add I18n.locale as a part of caching key automatically
with https://github.com/igorkasyanchuk/cache_with_locale you can use fragment caching automatically with I18n.locale. No more code like “cache [I18n.locale, user]”. DRY your code.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
with https://github.com/igorkasyanchuk/cache_with_locale you can use fragment caching automatically with I18n.locale. No more code like “cache [I18n.locale, user]”. DRY your code.
Post a comment