Hi there
I'm pretty sure I just need to understand LinguaPlone language
negotiation and Plone caching better.
Here's a run I just did:
- View content, all fine.
- Run script -- navigation box/folder contents gone.
- Switch browser language to Spanish, add Spanish to list of allowed
languages in site setup -- still nothing.
- Restart Zope, uninstall/reinstall LinguaPlone -- still nothing.
- Manually browse to .../front-page: voila, navigation box/folder
contents reappears.
- Continue browsing -- navigation box/folder contents are fine.
In summary:
- I don't think the script breaks anything as far as the content is concerned.
- After running the script, my initial page requests were for the
original language, not the new one. Plone rendered and cached the
empty views.
- Plone doesn't notice that I updated my language settings, so
subsequent views of the site render the cached versions of the
navigation/contents views. These are expensive to calculate, so it
makes sense to cache them.
- When I browse to an uncached place, the views get a kick and are recalculated.
If anyone would like to reproduce and confirm this using the script I
posted, I'd be very grateful.
Also, I'd like to know your opinions on how this could be addressed ..
is it a bug? A usability issue corner case? I suspect it will only
affect admin users who actually need to run a script like the one I
posted, and that new users with properly configured browsers/site
preferences will see the content that they should see. Though I also
suspect that if a user were unlucky enough to be browsing the site
during the update may also hit the cached views, until they restart
their browsers.
--
jean . .. .... //\\\oo///\\
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n