|
|
@ -308,8 +308,9 @@ function BookInfoManager:extractBookInfo(filepath, cover_specs)
|
|
|
|
-- cre.initCache("", 1024*1024*32) -- empty path = no cache
|
|
|
|
-- cre.initCache("", 1024*1024*32) -- empty path = no cache
|
|
|
|
-- But it's best to use a cache for quicker and less memory
|
|
|
|
-- But it's best to use a cache for quicker and less memory
|
|
|
|
-- usage when opening big books:
|
|
|
|
-- 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
|
|
|
|
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
|
|
|
|
self.cre_cache_overriden = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|