]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
Stop using an array as a cache key
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 17 Oct 2013 17:46:57 +0000 (18:46 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 17 Oct 2013 17:46:57 +0000 (18:46 +0100)
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()))
 
         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,
 
     return {
         'content_submenu': menu_items,