Cache notifications for 5 mins so that we don't hit the grading server on every web request

This commit is contained in:
Vik Paruchuri
2013-01-23 10:43:45 -05:00
parent 68f563a178
commit 665fb707b1
2 changed files with 68 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ def _staff_grading(tab, user, course, active_page):
tab_name = "Staff grading"
notifications = open_ended_notifications.staff_grading_notifications(course)
notifications = open_ended_notifications.staff_grading_notifications(course, user)
pending_grading = notifications['pending_grading']
img_path = notifications['img_path']