]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
search: Avoid '$' in the wikiname appearing unescaped on omega's query template,...
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index 3ebb1a324d8a3118b54f0d7c6360587892917b65..af24df1550ee7682d649a79e046d0e604c39e0cf 100644 (file)
@@ -683,6 +683,17 @@ sub refresh () {
        }
 }
 
+sub clean_rendered {
+       lockwiki();
+       loadindex();
+       remove_unrendered();
+       foreach my $page (keys %oldrenderedfiles) {
+               foreach my $file (@{$oldrenderedfiles{$page}}) {
+                       prune($config{destdir}."/".$file);
+               }
+       }
+}
+
 sub commandline_render () {
        lockwiki();
        loadindex();