From: x2003bruneau Date: Wed, 31 Jan 2007 13:04:00 +0000 (+0000) Subject: Fix wiki cache issues X-Git-Tag: xorg/0.9.13~29 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=70fc213e4048459b7c8700047ffd0217ebaece04;p=platal.git Fix wiki cache issues git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.13@1445 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/wiki/engine.php b/include/wiki/engine.php index 8455e44..22bdbb8 100644 --- a/include/wiki/engine.php +++ b/include/wiki/engine.php @@ -66,6 +66,10 @@ $cache_exists = file_exists($wiki_cache); if (Env::v('action') || !$cache_exists) { if ($cache_exists) { unlink($wiki_cache); + $files = glob($globals->spoolroot . '/spool/templates_c/*cache_' . wiki_filename($n) . '.tpl*'); + foreach ($files as $file) { + unlink($file); + } } // we leave pmwiki do whatever it wants and store everything