Skip to content

Commit

Permalink
Correctly handle separate cache backend for 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 9, 2012
1 parent 4770fc1 commit 16c1070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions sentry/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import logging
import time

from django.core.cache import get_cache
from django.core.cache import get_cache, cache

from sentry.conf import settings

if django.VERSION < (1, 3):
cache = get_cache()
else:
if django.VERSION > (1, 2) and settings.CACHE_BACKEND != 'default':
cache = get_cache(settings.CACHE_BACKEND)

_cache = cache
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

setup(
name='sentry',
version='4.1.3',
version='4.1.4',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/sentry',
Expand Down

0 comments on commit 16c1070

Please sign in to comment.