1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-10-27 20:34:16 +00:00

Cache category link pages

This commit is contained in:
gnosygnu 2016-10-18 11:24:40 -04:00
parent 7f4549d27a
commit 1f10cb2155

View File

@ -50,7 +50,8 @@ public class Xoctg_catpage_mgr implements Gfo_invk {
ctg = loader.Load_ctg_or_null(wiki, page_ttl, this, catpage_url, cat_ttl, limit); ctg = loader.Load_ctg_or_null(wiki, page_ttl, this, catpage_url, cat_ttl, limit);
} }
if (ctg == null) return null; // not in cache or db; exit if (ctg == null) return null; // not in cache or db; exit
// cache.Add(cat_ttl.Full_db(), ctg); if (limit == Int_.Max_value) // only add to cache if Max_val (DynamicPageList); for regular catpages, always retrieve on demand
cache.Add(cat_ttl.Full_db(), ctg);
} }
return ctg; return ctg;
} }