Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 398 Bytes

add_memcached.md

File metadata and controls

13 lines (11 loc) · 398 Bytes

Add memcached

Seahub caches items (avatars, profiles, etc) on the file system in /tmp/seahub_cache/ by default. You can replace it with Memcached. After installing python-memcached, add the following lines to seahub_settings.py.

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}