From e0e97a36297852128016b2ba8360d77f64b276db Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 5 Jun 2020 18:29:11 +0300 Subject: [PATCH] Cache the latest news in PIO Home for 180 days --- platformio/commands/home/rpc/handlers/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/home/rpc/handlers/misc.py b/platformio/commands/home/rpc/handlers/misc.py index d1851d13..a216344e 100644 --- a/platformio/commands/home/rpc/handlers/misc.py +++ b/platformio/commands/home/rpc/handlers/misc.py @@ -24,7 +24,7 @@ from platformio.commands.home.rpc.handlers.os import OSRPC class MiscRPC(object): def load_latest_tweets(self, data_url): cache_key = app.ContentCache.key_from_args(data_url, "tweets") - cache_valid = "7d" + cache_valid = "180d" with app.ContentCache() as cc: cache_data = cc.get(cache_key) if cache_data: