Increase variants
This commit is contained in:
@@ -97,8 +97,8 @@ struct SectionVariant {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void Section::evictOldVariants() const {
|
void Section::evictOldVariants() const {
|
||||||
// We keep up to 3 most recently accessed/modified variants to prevent SD card bloat
|
// We keep up to 5 most recently accessed/modified variants to prevent SD card bloat
|
||||||
constexpr size_t MAX_VARIANTS = 3;
|
constexpr size_t MAX_VARIANTS = 5;
|
||||||
|
|
||||||
std::string sectionsDir = epub->getCachePath() + "/sections";
|
std::string sectionsDir = epub->getCachePath() + "/sections";
|
||||||
auto files = Storage.listFiles(sectionsDir.c_str(), 100);
|
auto files = Storage.listFiles(sectionsDir.c_str(), 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user