]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/context_processors.py
Stop using an array as a cache key
[sommitrealweird.git] / sommitrealweird / bpcms / context_processors.py
index c235c9b31e39db17b27da878d49a7eabada45517..bf0b8f2400383ae950776737d38c9ce03a712685 100644 (file)
@@ -88,7 +88,7 @@ def content_submenu(request):
         menu_items.sort( \
             cmp=lambda x,y: cmp(x['title'].lower(), y['title'].lower()))
 
-        cache.set('bpcms_contentmenu_%s' %(folderpath), menu_items)
+        cache.set('bpcms_contentmenu_%s' %("/".join(folderpath)), menu_items)
 
     return {
         'content_submenu': menu_items,