by
KK » Mon Mar 26, 2018 2:19 pm
If I set Caché parameters to '1' the website load more fast but the multi-lang module doesn't works and display the contents in the same language in all countries.
I think only the initial part of figuring out the visitor's language and serving the first page in that language could be affected by caching. The visitor can manually choose her preferred language and then the rest of the pages should remain in that language. Is that not the case? Please confirm.
if I set Caché to '0' the multi-lang module works fine but the website load slowly.
Caching effectively serves a static HTML page so, of course, it has to be faster than the generated version.
The main issue here is that the generated page shouldn't be *so* slow as to be unusable (say taking 10 seconds to come up).
So what is the time you are getting with the generated page? If it is too slow, you should review your code - perhaps some loops are being used in an non-optimal manner? Or maybe the server is running too low on resources. Using PHP 7 can easily give a gain of 3-4 times compared to older versions.