google-code-export / yabi

Automatically exported from code.google.com/p/yabi
0 stars 1 forks source link

Use Django Filesystem caching for quickstart deploys #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Now that we are using Django's caching mechanism set up filesystem caching as 
the default caching mechanism so we may remove memcache as an "out-of-box" 
dependency.

https://docs.djangoproject.com/en/dev/topics/cache/#filesystem-caching

Original issue reported on code.google.com by amacgregor on 4 May 2012 at 7:17

GoogleCodeExporter commented 9 years ago
This is implemented now. In order to use memcache you will need to check that 
you override the CACHE setting in your private settings file.

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'localhost.localdomain:11211',
        'KEYSPACE': "yabiadmin"
    }
}

Original comment by amacgregor on 9 May 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Also make sure that session engine is set to use memcache.

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

Original comment by amacgregor on 9 May 2012 at 1:51