From 59026286a129355550a4cf9dc50368db7d31047f Mon Sep 17 00:00:00 2001 From: sk Date: Fri, 20 Oct 2023 10:46:56 +0200 Subject: [PATCH] don't cache as many posts --- .../main/java/org/joinmastodon/android/api/CacheController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/CacheController.java b/mastodon/src/main/java/org/joinmastodon/android/api/CacheController.java index 832fdcb40..12725fe0c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/CacheController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/CacheController.java @@ -121,7 +121,7 @@ public class CacheController{ db.insertWithOnConflict("home_timeline", null, values, SQLiteDatabase.CONFLICT_REPLACE); } if(!clear) - db.delete("home_timeline", "`id` NOT IN (SELECT `id` FROM `home_timeline` ORDER BY `time` DESC LIMIT ?)", new String[]{"1000"}); + db.delete("home_timeline", "`id` NOT IN (SELECT `id` FROM `home_timeline` ORDER BY `time` DESC LIMIT ?)", new String[]{"100"}); }); }