translate / pootle

Online translation tool
http://pootle.translatehouse.org
GNU General Public License v3.0
1.48k stars 288 forks source link

Alternate source languages are cached after cancelling #4842

Open dwaynebailey opened 8 years ago

dwaynebailey commented 8 years ago
  1. I have French and Scottish Gaelic (gd) set as alternate source languages.
  2. I go to a unit with 'gd' alt-src text
  3. I remove both my alt-src settings using my Settings page
  4. I refresh the unit and I still see 'gd' text

I'd expect any alt-src to disappear once I've removed it. But it seems that either we cache the setting or we're caching the rendering when we should be purging them.

Note: my browser-accept-lang does not include 'gd'

julen commented 8 years ago

The template snippet (the rendered HTML) is cached and it already takes into account the alternative source languages, so I'd be surprised the snippet cache to be the issue. If no user-defined alternative source languages exist, the fallback is to use Accept-Lang header languages but you mention that's not the case... The only remaining point I can think of is some intermediary caching happening in the view which might contain stale data.