Permalink
Browse files

[*] Database cache backend

  • Loading branch information...
1 parent a170e08 commit d8baf525832818dab6a465c5f1a273cb8c9b754f Serge Travin committed Jul 31, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 setwithme/settings.py
View
@@ -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.