From e23cc2a1deb93cd89e3c161d1e558c47d7356dc1 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 10 Sep 2012 13:41:44 +0200 Subject: [PATCH] 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 --- cre.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cre.cpp b/cre.cpp index 9326c5ae5..e9d592b2d 100644 --- a/cre.cpp +++ b/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();