summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-11-07 13:26:40 +0200
committerYuval Adam <yuval@y3xz.com>2015-11-07 13:26:40 +0200
commit62ef68d192129f4d189814790241982ec1905622 (patch)
tree4de14a414e3cb340595104f385d7ad4317485dec
parent9566570270dc403943ad54ef3ab91d9ec4389231 (diff)
Remove fugly caching
-rw-r--r--geshem.py2
-rw-r--r--requirements.txt1
2 files changed, 0 insertions, 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