mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Mass_parse: Use page_cache hashCode, not wiki hashCode [#514]
This commit is contained in:
parent
4547fa541f
commit
5c8b70fd76
@ -29,6 +29,7 @@ public class Xomp_parse_mgr {
|
||||
Xomp_mgr_db mgr_db = Xomp_mgr_db.New__load(cfg.Mgr_url());
|
||||
|
||||
// init page_pool
|
||||
Lru_cache_root.Instance.Del(wiki.Cache_mgr().Page_cache().Cache_key()); // delete defautl page_cache, b/c we will make one below
|
||||
Xomp_page_pool_loader page_pool_loader = new Xomp_page_pool_loader(wiki, mgr_db.Conn(), cfg.Num_pages_in_pool(), cfg.Show_msg__fetched_pool());
|
||||
Xomp_page_pool page_pool = new Xomp_page_pool(page_pool_loader, cfg.Num_pages_per_wkr());
|
||||
|
||||
|
@ -23,7 +23,7 @@ public class Xow_page_cache {
|
||||
private long cache_misses = 0;
|
||||
public Xow_page_cache(Xowe_wiki wiki) {
|
||||
this.wiki = wiki;
|
||||
this.cache_key = "xowa.app.page_cache.'" + wiki.Domain_str() + "'." + wiki.hashCode();
|
||||
this.cache_key = "xowa.app.page_cache.'" + wiki.Domain_str() + "'." + this.hashCode();
|
||||
this.cache = new Lru_cache(Bool_.Y, cache_key, 8 * Io_mgr.Len_mb, 16 * Io_mgr.Len_mb);
|
||||
}
|
||||
public String Cache_key() {return cache_key;} private final String cache_key;
|
||||
|
Loading…
Reference in New Issue
Block a user