app/soc/views/sitemap/sidebar.py
changeset 987 6fd5c561b446
parent 973 f9c2b32b9e2b
child 1007 3b66772d21a5
--- a/app/soc/views/sitemap/sidebar.py	Sun Jan 25 16:25:17 2009 +0000
+++ b/app/soc/views/sitemap/sidebar.py	Sun Jan 25 16:28:07 2009 +0000
@@ -25,6 +25,8 @@
 from soc.views import out_of_band
 from soc.views.helper import access
 
+import soc.cache.sidebar
+
 
 SIDEBAR = []
 SIDEBAR_ACCESS_ARGS = ['SIDEBAR_CALLING']
@@ -40,6 +42,8 @@
   global SIDEBAR
   SIDEBAR.append(callback)
 
+
+@soc.cache.sidebar.cache
 def getSidebar():
   """Constructs a sidebar for the current user.
   """