mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
Implements solution for #224
This commit is contained in:
parent
2db7a71e9d
commit
a1343282d2
@ -158,6 +158,12 @@ USE_TZ = True
|
|||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = '/home/allianceserver/allianceauth/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
|
## Auth configuration starts here
|
||||||
|
@ -5,7 +5,7 @@ import requests
|
|||||||
import requests_cache
|
import requests_cache
|
||||||
import json
|
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():
|
class EveWhoManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user