mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 06:20:16 +02:00
Added simple caching.
This commit is contained in:
parent
1e86df3992
commit
185805ecc1
@ -5,6 +5,7 @@ evelink
|
|||||||
dnspython
|
dnspython
|
||||||
passlib
|
passlib
|
||||||
requests>=2.9.1
|
requests>=2.9.1
|
||||||
|
requests_cache
|
||||||
json
|
json
|
||||||
|
|
||||||
# Django Stuff #
|
# Django Stuff #
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
import requests_cache
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
requests_cache.install_cache("evewhocache", backend="sqlite", expire_after=3600)
|
||||||
|
|
||||||
class EveWhoManager():
|
class EveWhoManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user