Session

Caching in a Multilanguage Environment

Benjamin Krause

Date: Tuesday 18 September 2007
Time: 10:45 - 11:30
Location: Saal Maritim B

Rails is a great framework when building English web sites. But when you want to generate a multilingual web site, you need to rely on plugins like globalize or gettext. The whole caching mechanism of Rails does not support multilanguage caching out of the box.

This talk will show how the multilanguage caching mechanism is implemented on omdb.org, a free database for film information. The aim of the caching is to deliver as much static documents via apache as possible, using page caching. It also supports a dependency model to automatically withdraw dependent objects on changes and deals with the ferret index to keep the search index consistent.

The talk will focus on Apache/Mongrel configuration, using globalize, and implementing cache handler and cache sweeper classes to deliver static documents in several languages.

News and Coverage