mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
use 64Mb for on disk DOM cache for crengine
Previously we had cache size limit of 100 bytes, so crengine would erase all on-disk cache on each file open as described in #206
This commit is contained in:
committed by
Qingping Hou
parent
04e6df1fd0
commit
e23cc2a1de
2
cre.cpp
2
cre.cpp
@@ -567,7 +567,7 @@ int luaopen_cre(lua_State *L) {
|
||||
/* initialize font manager for CREngine */
|
||||
InitFontManager(lString8());
|
||||
|
||||
ldomDocCache::init(lString16("./cr3cache"), 100);
|
||||
ldomDocCache::init(lString16("./cr3cache"), 1024 * 1024 * 64); // 64Mb on disk cache for DOM
|
||||
|
||||
#ifdef DEBUG_CRENGINE
|
||||
CRLog::setStdoutLogger();
|
||||
|
||||
Reference in New Issue
Block a user