change to in memory cache
This commit is contained in:
parent
e3701389df
commit
001eab0225
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ MINIMUM_COUNT_LANGUAGE = 5
|
|||
DEFAULT_STATION_LIMIT = 200
|
||||
SHOW_BROKEN_STATIONS = False
|
||||
ID_PREFIX = "RB"
|
||||
session = requests_cache.CachedSession('ycast_cache')
|
||||
session = requests_cache.CachedSession('ycast_cache', backend='memory')
|
||||
|
||||
|
||||
def get_json_attr(json, attr):
|
||||
|
|
|
@ -30,7 +30,7 @@ app = Flask(__name__)
|
|||
|
||||
def revalidate_cache():
|
||||
logging.info("Starting cache revalidation")
|
||||
session = requests_cache.CachedSession('ycast_cache')
|
||||
session = requests_cache.CachedSession('ycast_cache', backend='memory')
|
||||
get_urls = [
|
||||
response.url for response in session.cache.responses.values()
|
||||
if response.request.method == 'GET'
|
||||
|
|
Loading…
Add table
Reference in a new issue