mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Set default 'cre_storage_size_factor' also in coverbrowser (#3733)
This commit is contained in:
@@ -308,8 +308,9 @@ function BookInfoManager:extractBookInfo(filepath, cover_specs)
|
||||
-- cre.initCache("", 1024*1024*32) -- empty path = no cache
|
||||
-- But it's best to use a cache for quicker and less memory
|
||||
-- usage when opening big books:
|
||||
local default_cre_storage_size_factor = 20 -- note: keep in sync with the one in credocument.lua
|
||||
cre.initCache(self.tmpcr3cache, 0, -- 0 = previous book caches are removed when opening a book
|
||||
true, G_reader_settings:readSetting("cre_storage_size_factor")) -- avoid CRE WARNINGs
|
||||
true, G_reader_settings:readSetting("cre_storage_size_factor") or default_cre_storage_size_factor)
|
||||
self.cre_cache_overriden = true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user