Fix wiki cache issues
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 31 Jan 2007 13:04:00 +0000 (13:04 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 31 Jan 2007 13:04:00 +0000 (13:04 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.13@1445 839d8a87-29fc-0310-9880-83ba4fa771e5

include/wiki/engine.php

index 8455e44..22bdbb8 100644 (file)
@@ -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