ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template caching for multi language websites

March 31, 2009 4:33am

Subscribe [2]
  • #1 / Mar 31, 2009 4:33am

    Tim Bertens

    6 posts

    Hello,

    We ran into a problem with one of websites we made for a client.  This website is multilingual (dutch, english, french) and we use the module from http://www.putyourlightson.net/projects/multi_language to accomplish the basics.  This module uses the url (eg http://www.website.com/fr) to set a language variable (in this case fr) and this variable is then used in the templates to read the language dependent fields (eg. desciption_fr).  This is all working fine.

    The problem starts when we enable template caching, the templates and content are indeed cached (and the speed of page loading is reduced noticeable) but the system caches the field-content of the first language that is requested.  So if a certain page is loaded as http://www.website/fr/contact the visitors of http://www.website.com/en/contact also get the french version. 

    We have disabled template caching for the moment, but is there any way we can get around this?

    best regards,
    Tim.

  • #2 / Mar 31, 2009 11:25am

    Sue Crocker

    26054 posts

    Which version and build of ExpressionEngine are you using? You can find that out at the bottom on any control panel page.

  • #3 / Mar 31, 2009 11:59am

    Tim Bertens

    6 posts

    Hello Sue,

    sorry should have mentioned that, it is version 1.6.6

    rg,
    Tim.

  • #4 / Mar 31, 2009 12:03pm

    Sue Crocker

    26054 posts

    Let’s have you upgrade to the newest version/build. It may not make a difference, but this way we’ll both be on the same build for testing purposes.

  • #5 / Mar 31, 2009 12:17pm

    Tim Bertens

    6 posts

    ok, i’ll do that over the weekend as the site is already live.
    I’ll let you know,

    rg,
    Tim.

  • #6 / Mar 31, 2009 12:18pm

    Sue Crocker

    26054 posts

    We’ll be here, just let us know when you get a chance.

  • #7 / Oct 19, 2009 9:05am

    Tim Bertens

    6 posts

    Hello Sue,

    forgot to reply… :-s
    We’ve done the upgrade (a few in meantime…) and released many other multilanguage sites over the last months, but the problem is consistent.  Putting on template caching is getting the page in the wrong language (or better said in the cache language which is not always the correct one)

    rg,
    Tim

  • #8 / Oct 19, 2009 9:21am

    Sue Crocker

    26054 posts

    Tim, this is using a third party module.. have you contacted the author to see if it’s a problem with the module itself? Can he replicate the problem?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases