Hi, this is not a big problem, as it can be worked-around simply by not using the "simple cache".
I'm using Language Sections module to provide "multi-language" in a Panels' "Custom Content" pane. However, when switching languages, Panels still uses the old (cached) version if the "simple cache" is enabled. I'm not saying that's necessarily wrong, but since a language switch is likely to change all kinds of things, I would suggest that the "simple cache" should be sensitive to $locale and re-build the content when it changes.
Keep up the great work - Panels 2 is a very impressive module.
Comments
Comment #1
sdboyer commentedThanks for this report netgenius, it's good to know. SimpleCache is...well, simple. Not simple like simple and elegant, but, y'know, like that 'simple' kid from down the block who went to a different school. Yeah.
It's not a very advanced caching system at all, and we definitely know that it has a tendency to break stuff - we just don't know everything that it has a tendency to break yet, which is why we appreciate this report. In any case, SimpleCache is unlikely to start going to school with the rest of the kids until a real caching guru steps up and offers their help.
Comment #2
andy inman commentedMaybe an easy solution would be to add "Current Language" as one of your "context" settings? Only guessing, I'm not really clear yet on how to use "context".
But it's certainly not a complaint - there are all kinds of modules that don't offer multi-language support, I just get used to it :)
Comment #3
merlinofchaos commentedThe idea here is that most sites which are likely to heavily use caching will need to write their own caching mechanism to use. Writing the system is actually quite simple, and it's fairly easy to put your own switches in.
I wouldn't recommend adding more switches than are currently in there, because there are LOTS of things that can be switched for and language is just one of them. Role is another. And really, adding those switches leads to tons and tons of possibilities, when it's better to have the caching system tailored to the data.
Simple cache is primarily what's called a reference implementation -- it exists to show people how to do it.
Comment #4
esmerel commentedNo fixes are going to get committed to the 2.x line