Isnor Creative
Isnor Creative Blog
Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue

May 5, 2014

Rails Russian Doll Caching For Multi-Language Sites

I’ve been digging in on Rails russian doll caching lately, working on various performance improvements of a high-traffic site that is pushing the limits of our server.

One thing worth noting is that if your site is multi-lingual is that you’re going to need to modify the default cache call to account for locale in the cache key, for example:

instead of:

- cache blog_post do

You’ll want to include the locale:

- cache [I18n.locale, blog_post] do 

I am available for Ruby on Rails consulting work – get in touch to learn more.

Gordon B. Isnor

Gordon B. Isnor writes about Ruby on Rails, Ember.js, Elm, Elixir, Phoenix, React, Vue and the web.
If you enjoyed this article, you may be interested in the occasional newsletter.

I am now available for project work. I have availability to build greenfield sites and applications, to maintain and update/upgrade existing applications, team augmentation. I offer website/web application assessment packages that can help with SEO/security/performance/accessibility and best practices. Let’s talk

comments powered by Disqus