Added simple caching.

This commit is contained in:
Ydmir 2016-01-30 11:05:09 +01:00
parent 1e86df3992
commit 185805ecc1
2 changed files with 3 additions and 1 deletions

View File

@ -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 #

View File

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