diff --git a/alliance_auth/settings.py.example b/alliance_auth/settings.py.example index 2664add0..52804ca3 100755 --- a/alliance_auth/settings.py.example +++ b/alliance_auth/settings.py.example @@ -158,6 +158,12 @@ USE_TZ = True STATIC_URL = '/static/' STATIC_ROOT = '/home/allianceserver/allianceauth/static/' +# Cache directory for EveWho, no ending / +# by default this becomes ~//alliance_auth/cache +# This directory needs to be writable by the webserver +EVEWHO_CACHE_DIR = '{}/cache'.format(BASE_DIR) + + ##################################################### ## ## Auth configuration starts here diff --git a/services/managers/evewho_manager.py b/services/managers/evewho_manager.py index 595efb46..32769dbc 100644 --- a/services/managers/evewho_manager.py +++ b/services/managers/evewho_manager.py @@ -5,7 +5,7 @@ import requests import requests_cache import json -requests_cache.install_cache("evewhocache", backend="sqlite", expire_after=3600) +requests_cache.install_cache("{}/evewho".format(settings.EVEWHO_CACHE_DIR), backend="sqlite", expire_after=3600) class EveWhoManager(): def __init__(self):