Skip to content

Commit

Permalink
don't cache as many posts
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Oct 20, 2023
1 parent ef0fbb2 commit 5902628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void putHomeTimeline(List<Status> posts, boolean clear){
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"});
});
}

Expand Down

0 comments on commit 5902628

Please sign in to comment.