@ -106,8 +106,9 @@ public class Xomp_parse_wkr implements Gfo_invk {
Xoa_ttlttl=wiki.Ttl_parse(cur_ns,ppg.Ttl_bry());
Xoa_ttlttl=wiki.Ttl_parse(cur_ns,ppg.Ttl_bry());
// if ns changed and prv_ns is main
// if ns changed and prv_ns is main
if(cur_ns!=prv_ns){
if(cur_ns!=prv_ns){
if(prv_ns==gplx.xowa.wikis.nss.Xow_ns_.Tid__main)
// COMMENTED: cache now supports 2 levels of permanence; no need to free entire page cache to clear pages added by ifexists and the like; DATE:2016-12-12
wiki.Cache_mgr().Free_mem_all(Bool_.Y);// NOTE: this clears all caches, include imglinks
// if (prv_ns == gplx.xowa.wikis.nss.Xow_ns_.Tid__main)
// wiki.Cache_mgr().Free_mem(Bool_.Y); // NOTE: clears all caches, include imglinks; only Main will have benefit of
prv_ns=cur_ns;
prv_ns=cur_ns;
}
}
Xoae_pagewpg=Xoae_page.New(wiki,ttl);
Xoae_pagewpg=Xoae_page.New(wiki,ttl);
@ -137,7 +138,7 @@ public class Xomp_parse_wkr implements Gfo_invk {
privatefinalHash_adp_brycache=Hash_adp_bry.cs();// NOTE: wiki titles are not case-sensitive when ns is "1st-letter" (EX: w:earth an w:Earth); in these cases, two entries will be stored
privatefinalOrdered_hashcache=Ordered_hash_.New_bry();// NOTE: wiki titles are not case-sensitive when ns is "1st-letter" (EX: w:earth an w:Earth); in these cases, two entries will be stored
fxt.Wiki().Db_mgr().Load_mgr().Clear();// must clear; otherwise fails b/c files get deleted, but wiki.data_mgr caches the Xowd_regy_mgr (the .reg file) in memory;
fxt.Wiki().Db_mgr().Load_mgr().Clear();// must clear; otherwise fails b/c files get deleted, but wiki.data_mgr caches the Xowd_regy_mgr (the .reg file) in memory;