git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.10@345
839d8a87-29fc-0310-9880-
83ba4fa771e5
***************************************************************************/
require_once("xorg.inc.php");
+require_once("wiki.inc.php");
new_skinned_page('index.tpl', AUTH_COOKIE);
$page->clear_compiled_tpl();
+wiki_clear_all_cache();
redirect(empty($_SERVER['HTTP_REFERER']) ? 'index.php' : $_SERVER['HTTP_REFERER']);
$wikisite = $oldwikisite;
}
+function wiki_clear_all_cache()
+{
+ system("rm -f ".wiki_work_dir()."/cache_*");
+}
+
// editing pages are not static but used templates too, so we used
// temp template files containing result from wiki
function wiki_create_tmp($content) {