add LANGUAGE_CODE to cache key V02.03
authorymh <ymh.work@gmail.com>
Tue, 13 Mar 2012 13:55:58 +0100
changeset 160 5f6c97b58688
parent 159 df806aa23c15
child 161 c9fb5cb97a9b
add LANGUAGE_CODE to cache key
web/hdalab/views/ajax.py
--- a/web/hdalab/views/ajax.py	Tue Mar 13 13:50:22 2012 +0100
+++ b/web/hdalab/views/ajax.py	Tue Mar 13 13:55:58 2012 +0100
@@ -162,7 +162,7 @@
     content_count = request.GET.get('contentcount', 12)
     tag_count = request.GET.get('tagcount', 30)
     
-    cache_key = fix_cache_key("-".join(("filter",str(periode),str(label),str(country),str(contentlist),str(max_tag_order),str(content_count),str(tag_count))))
+    cache_key = fix_cache_key("-".join(("filter",str(periode),str(label),str(country),str(contentlist),str(max_tag_order),str(content_count),str(tag_count), str(request.LANGUAGE_CODE))))
     
     outputstr = cache.get(cache_key)