From 62ef68d192129f4d189814790241982ec1905622 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 7 Nov 2015 13:26:40 +0200 Subject: Remove fugly caching --- geshem.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'geshem.py') diff --git a/geshem.py b/geshem.py index 2a743c9..be2bd6b 100644 --- a/geshem.py +++ b/geshem.py @@ -3,7 +3,6 @@ import requests from datetime import datetime from flask import Flask, render_template -from flask.ext.cache import Cache from os import environ from pathlib import Path from redis.exceptions import ConnectionError @@ -12,7 +11,6 @@ MAPS_JSON = 'http://map.govmap.gov.il/rainradar/radar.json' STATIC_DIR = Path(__file__).resolve().parents[0] / 'static' app = Flask(__name__) -cache = Cache(app, config={'CACHE_TYPE': 'simple'}) redis = redis.from_url(environ.get('REDIS_URL', 'redis://localhost')) def fetch_latest_images(): -- cgit v1.3.1