From: Brett Parker Date: Thu, 17 Oct 2013 17:46:57 +0000 (+0100) Subject: Stop using an array as a cache key X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/ade662a8e015bcecdc58512f915e4f56d16a56ed?ds=inline;hp=2be03e537ecc3396abc91621c5bfb23ecc125e47 Stop using an array as a cache key --- 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,