[silva-dev] localization and caching, was: RE: caching for file and image assets
Clemens Robbenhaar
robbenhaar at espresto.com
Mon Jul 7 09:39:08 CEST 2003
Hi Jose,
just my two cents on caching and i18n:
> So the same object (I mean the same URL) leads to different renders for
> different users, in order to adapt the Silva User Interface to the
> language prefered by each user (preferences set at the Web Browser).
>
> With different URLs for the same object at different languages, the RAM
> cache is usable, but I think this is not our case.
In the SMI it may be the case the same URI points to all the localized
versions, as localization may be done via Cookies; but in this case
simple caching by URL is not possible anyway
For the public views I guess it is better to use prefixes to the URL or
something like that and not cookies or language preferences, as the
cookeis are not very reliable to work, and personally I feel the
language-preference may result in unexpected results for people having
a "wrong" configuration.
If using URL-prefixes to determine the locale the URL's look different
for different localized versions of the same page, of course. I am not
comfortable enough with Zope's RAM cache manager to know it this helps
the caching to do the right thing.
Cheers,
Clemens
More information about the silva-dev
mailing list