Skip to content

Commit 16132f9

Browse files
Reduce fresh_minutes for octopus data caching
1 parent 166a700 commit 16132f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/predbat/octopus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ async def _download():
14151415
result = await self.async_download_octopus_url(url, json_only=json_only)
14161416
return result if result else None
14171417

1418-
data = await self.storage.fetch_cached("octopus", url_hash, _download, fresh_minutes=120, stale_minutes=35, format="yaml")
1418+
data = await self.storage.fetch_cached("octopus", url_hash, _download, fresh_minutes=30, stale_minutes=35, format="yaml")
14191419
if not data:
14201420
self.log("Warn: Unable to download Octopus data from URL {}".format(url))
14211421
return data

0 commit comments

Comments
 (0)