benjamincurrie / CodeIgniter-Language-Switch

Codeigniter hook for multi language support, focuses on support for SEO friendly URLs in each language.
15 stars 11 forks source link

Caching is not working properly when the multi language support is enabled. #3

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi,

Using your library to add multilanguage support I found a problem when caching is enabled. It causes always displaying the first page stored in cache, because CI uses the information on "URI Class" to make the hash of the file and it hasn't any reference to the language requested.

I just overwrite the "CI Ouput Class" to add the language code, stored in the "LANGUAGE" constant, and it works.

Greetings, Ismael