Cache the latest news in PIO Home for 180 days

This commit is contained in:
Ivan Kravets
2020-06-05 18:29:11 +03:00
parent f5e6820903
commit e0e97a3629

View File

@ -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: