The cache now honors the 5 minutes. We might want to make that longer (15 minutes).
@@ -20,3 +20,4 @@ six==1.15.0
toml==0.10.1
typed-ast==1.4.1
Werkzeug==1.0.1
+redis
@@ -19,7 +19,8 @@ def format_datetime(value):
# Check Configuring Flask-Caching section for more details
-cache = Cache(app, config={"CACHE_TYPE": "filesystem", "CACHE_DIR": "cache"})
+# cache = Cache(app, config={"CACHE_TYPE": "filesystem", "CACHE_DIR": "cache"})
+cache = Cache(app, config={"CACHE_TYPE": "redis", "CACHE_REDIS_HOST": "redis"})
import jammin