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

Search: Clear cache after reindex

This commit is contained in:
gnosygnu 2017-02-22 16:45:50 -05:00
parent 12848b7cf5
commit b6abbf2ffe
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class Xosql_exec_html extends Xow_special_wtr__base {
@Override protected void Bld_tags(Xoa_app app, Io_url addon_dir, Xopage_html_data page_data) {
Xopg_tag_mgr head_tags = page_data.Head_tags();
Xopg_tag_wtr_.Add__xoelem (head_tags, app.Fsys_mgr().Http_root());
Xopg_tag_wtr_.Add__xocss (head_tags, app.Fsys_mgr().Http_root());
Xopg_tag_wtr_.Add__xohelp (head_tags, app.Fsys_mgr().Http_root());
Xopg_tag_wtr_.Add__xolog (head_tags, app.Fsys_mgr().Http_root());

View File

@ -110,6 +110,9 @@ class Xowdir_item_mgr {
gplx.xowa.addons.wikis.searchs.bldrs.Srch_bldr_mgr_.Setup(wiki);
app.Bldr().Run();
// clear cache
gplx.xowa.addons.wikis.searchs.Srch_search_addon.Get(wiki).Clear_rslts_cache();;
// send notify
app.Gui__cbk_mgr().Send_notify(cbk_trg, "search reindex done");
}