mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Cache the latest news in PIO Home for 180 days
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user