Implements solution for #224

This commit is contained in:
Adarnof 2016-01-31 22:44:42 +00:00
parent 2db7a71e9d
commit a1343282d2
2 changed files with 7 additions and 1 deletions

View File

@ -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 ~/<installdir>/alliance_auth/cache
# This directory needs to be writable by the webserver
EVEWHO_CACHE_DIR = '{}/cache'.format(BASE_DIR)
#####################################################
##
## Auth configuration starts here

View File

@ -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):