projects
/
sommitrealweird.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add caching of sub menus
[sommitrealweird.git]
/
sommitrealweird
/
bpcms
/
context_processors.py
diff --git
a/sommitrealweird/bpcms/context_processors.py
b/sommitrealweird/bpcms/context_processors.py
index 0edc30af4e26242bed1dd99e0cfbcedc980256c7..3668ab008dfdb475cf6400ec7b900b1a1c7318e9 100644
(file)
--- a/
sommitrealweird/bpcms/context_processors.py
+++ b/
sommitrealweird/bpcms/context_processors.py
@@
-94,6
+94,8
@@
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)
+
return {
'content_submenu': menu_items,
}