Culture Picker and Cache

Topics: Localization, Troubleshooting, Русский (Russian)
Dec 25, 2013 at 2:28 PM
Edited Dec 25, 2013 at 3:50 PM
Let's say I have a multicultural site.
When I have Cache module then at picking culture in culture picker I have a query string attached to url, like this:
1) http://udcmo.stripes-and-ashes.com/ru?__r=8d0cf932be5769f
2) http://udcmo.stripes-and-ashes.com/?__r=8d0cf936c19f463
3) http://udcmo.stripes-and-ashes.com/en?__r=8d0cf9372fdd00e
4) http://udcmo.stripes-and-ashes.com/?__r=8d0cf937738e22b
5) http://udcmo.stripes-and-ashes.com/ru?__r=8d0cf93822cf72e

Each of this page gets cached (because of the unique url I suppose). But the thing is, each time parameter is new and differs from any other< thus making EACH page requested to be cached. For instance, I change:

6) RU -> EN : http://udcmo.stripes-and-ashes.com/ru?__r=8d0cf93f534968c
7) EN -> RU : http://udcmo.stripes-and-ashes.com/en?__r=8d0cf93fec39d25
8) RU -> EN : http://udcmo.stripes-and-ashes.com/ru?__r=8d0cf9404c09356
9) EN -> RU : http://udcmo.stripes-and-ashes.com/en?__r=8d0cf940a442358

and now in cache I have 4 pages on 4 requests. This means, that "de facto" caching is not working with multiple cultures. At least in my particular case.

How can I make caching work?
Developer
Dec 28, 2013 at 6:25 PM
This shouldn't be a problem, see: https://orchard.codeplex.com/workitem/20381
Dec 28, 2013 at 11:10 PM
Ok, I see what's happening there. Culture Picker module redirects to another page. But I need to see cached page, not a new one. Is it possible to disable that __r url add-ons or may be set some logic to customize that behavior?
Developer
Dec 28, 2013 at 11:33 PM
I don't think you can simply disable this feature (probably you could try removing it from a result filter, but make sure to make your module depend on OutputCache). If you really need it you could open an issue about it for evaluation.