From f04517749bbe50ce70512b53e508d07e14a9b7a9 Mon Sep 17 00:00:00 2001 From: Pearoo <63553775+rnxm@users.noreply.github.com> Date: Sat, 13 Sep 2025 20:13:09 +0200 Subject: [PATCH] chore: update cache retention --- firka/lib/helpers/api/client/kreta_client.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firka/lib/helpers/api/client/kreta_client.dart b/firka/lib/helpers/api/client/kreta_client.dart index cb8f007e..35217f30 100644 --- a/firka/lib/helpers/api/client/kreta_client.dart +++ b/firka/lib/helpers/api/client/kreta_client.dart @@ -455,12 +455,12 @@ class KretaClient { } } - // only cache stuff 4 months ago and a week in advance + // only cache stuff 4 months ago and a month in advance if (from.millisecondsSinceEpoch >= now.subtract(Duration(days: 120)).millisecondsSinceEpoch) { if (to == null || to.millisecondsSinceEpoch <= - now.add(Duration(days: 7)).millisecondsSinceEpoch) { + now.add(Duration(days: 31)).millisecondsSinceEpoch) { await isar.writeTxn(() async { await storeCache(resp, cacheKey); });