Hello group,
I'm caching an internationalized homepage that way:

index:
  enabled:     on
  lifetime:    900

as you see, i only cach the action,
the problem is that when i change the language wich is reflected in the url,
the caché shows me only the first loaded page.
Symfony doc says:

"for internationalized applications: If you want to enable caching on a page
that has several translations, the language code must somehow be included in
the URL pattern. This trick will multiply the number of pages in the cache,
but it can be of great help to speed up heavily interactive applications."

My routing yml is something like

es_homepage:
  url: /es/
  param: { module: home, action: index, sf_culture: es }

en_homepage:
  url: /en/
  param: { module: home, action: index, sf_culture: en }

homepage:
  url: /:sf_culture/
  requirements: { sf_culture: (?:es|en) }
  param: { module: home, action: index }

how can i cache the action without caching all the languages in the same
file?
i am doing something wrong??

thank you very much.

-- 
        - Oriol Mercadé Figueras

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to