Increase variants

This commit is contained in:
jpirnay
2026-05-01 16:53:41 +02:00
parent 67706edc1a
commit c88e6f3170
+2 -2
View File
@@ -97,8 +97,8 @@ struct SectionVariant {
};
void Section::evictOldVariants() const {
// We keep up to 3 most recently accessed/modified variants to prevent SD card bloat
constexpr size_t MAX_VARIANTS = 3;
// We keep up to 5 most recently accessed/modified variants to prevent SD card bloat
constexpr size_t MAX_VARIANTS = 5;
std::string sectionsDir = epub->getCachePath() + "/sections";
auto files = Storage.listFiles(sectionsDir.c_str(), 100);