Django Cache Configuration

HI

A little bit special seafile installation on a shared webspace service.

I have to get Seafile to write into a specific tmp file, because I do not have permissions for the global /tmp folder.

I tried to achieve this by adding the following to the seahub_setting.py

CACHES = {
     'default': {
         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
         'LOCATION': '/home/USER/tmp/seahub_cache',
                }
         }

But I still get the following errors.

Any ideas what I could do about this?

  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/USER/seafile/seafile-server-latest/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/USER/seafile/seafile-server-latest/seahub/seahub/base/decorators.py", line 40, in _decorated
    return func(request, *args, **kwargs)
  File "/home/USER/seafile/seafile-server-latest/seahub/seahub/views/__init__.py", line 755, in libraries
    'enable_encrypted_library': config.ENABLE_ENCRYPTED_LIBRARY,
  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/utils/functional.py", line 226, in inner
    return func(self._wrapped, *args)
  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/django_constance-1.0.1-py2.6.egg/constance/base.py", line 21, in __getattr__
    result = self._backend.get(key)
  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/django_constance-1.0.1-py2.6.egg/constance/backends/database/__init__.py", line 77, in get
    self._cache.add(key, value)
  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/cache/backends/filebased.py", line 31, in add
    if self.has_key(key, version):
  File "/home/USER/seafile/seafile-server-latest/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/cache/backends/filebased.py", line 82, in has_key
    with io.open(fname, 'rb') as f:
IOError: [Errno 13] Permission denied: '/tmp/seahub_cache/ca4b29e0fc35cade6475e7f9cd260ece.djcache'

Ay help would be appreciated,

Chris