X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/acedb5e82f30e6502e2801db9f8d64d879f44347..525b287d2a1c652749f6e175568695907ac3a65b:/sommitrealweird/bpcms/context_processors.py?ds=inline diff --git a/sommitrealweird/bpcms/context_processors.py b/sommitrealweird/bpcms/context_processors.py index c235c9b..72c335d 100644 --- a/sommitrealweird/bpcms/context_processors.py +++ b/sommitrealweird/bpcms/context_processors.py @@ -4,6 +4,7 @@ from django.core.cache import cache import re def content_menu(request): + menu_items = cache.get('bpcms_mainmenu') if not menu_items: @@ -88,7 +89,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,