1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2025-06-02 07:24:19 +00:00

Embeddable: Add method to selectively clear pages from cache (additional code)

This commit is contained in:
gnosygnu 2017-01-26 04:02:20 -05:00
parent 27f6811e1f
commit 9ea81f3b26

View File

@ -35,7 +35,9 @@ public class Xop_mediawiki_wkr {
wiki.Parser_mgr().Scrib().Core_term(); wiki.Parser_mgr().Scrib().Core_term();
wiki.Appe().Wiki_mgr().Wdata_mgr().Clear(); wiki.Appe().Wiki_mgr().Wdata_mgr().Clear();
} }
public void Clear_cache() { public void Clear_cache(String page) {
Xoa_ttl ttl = wiki.Ttl_parse(Bry_.new_u8(page));
wiki.Cache_mgr().Page_cache().Del(ttl.Full_db());
} }
public String Parse(String page, String wikitext) { public String Parse(String page, String wikitext) {
Xoa_ttl ttl = wiki.Ttl_parse(Bry_.new_u8(page)); Xoa_ttl ttl = wiki.Ttl_parse(Bry_.new_u8(page));