Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
[*] Database cache backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Travin committed Jul 31, 2011
1 parent a170e08 commit d8baf52
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setwithme/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,15 @@

DEFAULT_PROFILE_PIC = os.path.join(STATIC_URL, '/static/images/nophoto.png')

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'cache_table',
}
}

try:
from settings_local import *
except ImportError:
pass

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}

0 comments on commit d8baf52

Please sign in to comment.