From ade662a8e015bcecdc58512f915e4f56d16a56ed Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Thu, 17 Oct 2013 18:46:57 +0100 Subject: [PATCH] Stop using an array as a cache key --- sommitrealweird/bpcms/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sommitrealweird/bpcms/context_processors.py b/sommitrealweird/bpcms/context_processors.py index c235c9b..bf0b8f2 100644 --- a/sommitrealweird/bpcms/context_processors.py +++ b/sommitrealweird/bpcms/context_processors.py @@ -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, -- 2.39.5