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 -- requirements.txt | 1 - 2 files changed, 3 deletions(-) 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(): diff --git a/requirements.txt b/requirements.txt index fb25d3e..a7eacd1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ Flask==0.10.1 -Flask-Cache==0.13.1 Jinja2==2.8 MarkupSafe==0.23 Werkzeug==0.10.4 -- cgit v1.3.1