# How to add lang\_code to fragment-cache pattern?

**URL:** <https://www.ruby-forum.com/t/how-to-add-lang-code-to-fragment-cache-pattern/91914>\
**Category:** Rails\
**Created:** [April 13, 2007, 11:56am UTC](https://www.ruby-forum.com/t/how-to-add-lang-code-to-fragment-cache-pattern/91914 "2007-04-13T11:56:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [April 13, 2007, 11:56am UTC](https://www.ruby-forum.com/t/how-to-add-lang-code-to-fragment-cache-pattern/91914/1 "2007-04-13T11:56:56Z")

</div>

Hi there!

I’m looking for a way to achieve a language-depending fragment cache.  
Since GLoc itself does not provide a solution for this, I’m looking for  
a way to change the pattern that is used for storing the fragments.

Is there an option or would I need to override fragment\_cache\_key for  
instance?

GruÃŸ  
//David
