Commits

Kai Diefenbach committed 167d758

cache keys are using CACHE_MIDDLEWARE_PREFIX now

  • Participants
  • Parent commits dec3bff

Comments (0)

Files changed (1)

File lfc_blog/models.py

 
 # django imports
 from django import forms
+from django.conf import settings
 from django.core.cache import cache
 from django.db import models
 from django.template.loader import render_to_string
-from django.utils import translation
 from django.utils.translation import ugettext_lazy as _
 
 # tagging imports
 from portlets.models import Portlet
 
 # lfc imports
-import lfc.utils
 from lfc.fields.autocomplete import AutoCompleteTagInput
 from lfc.models import BaseContent
 
         request = context.get("request")
         
         # CACHE
-        cache_key = "portlet-blog-%s" % request.user.id
+        cache_key = "%s-portlet-blog-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, request.user.id)
         result = cache.get(cache_key)
         if result:
             return result