From ea0442b4797fdc34414d1b0c3153298e214766f6 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 31 Oct 2012 00:11:52 +0100 Subject: stats in DB --- meetingtools/apps/sco/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meetingtools/apps/sco') diff --git a/meetingtools/apps/sco/models.py b/meetingtools/apps/sco/models.py index 325baae..3607579 100644 --- a/meetingtools/apps/sco/models.py +++ b/meetingtools/apps/sco/models.py @@ -1,6 +1,7 @@ """ Abstract sco objects and utility methods """ +import logging __author__ = 'leifj' @@ -53,7 +54,7 @@ def get_sco(acc,sco_id): if sco is None: sco,created = ACObject.objects.get_or_create(acc=acc,sco_id=sco_id) assert sco is not None - cache.set(key,sco) + cache.set(key,sco,30) return sco def get_sco_shortcuts(acc,shortcut_id): -- cgit v1.1