Skip to content

Add memcached

Seahub caches items (avatars, profiles, etc) on the file system in /tmp/seahub_cache/ by default. You can use memcached instead to improve the performance.

There are more memcached configurations in the Pro edition. Please refer to Memcached Options for Pro Edition.

First, make sure libmemcached library and development headers are installed on your system.

For Seafile 7.1+

# on Debian/Ubuntu 18.04+
apt-get install memcached libmemcached-dev -y
pip3 install --timeout=3600 pylibmc django-pylibmc

systemctl enable --now memcached
# on CentOS 8
yum install memcached libmemcached -y
pip3 install --timeout=3600 pylibmc django-pylibmc´╗┐

systemctl enable --now memcached

Add the following configuration to

    'default': {
        'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
        'LOCATION': '',