* recentchanges: Exipre all *._change pages, even if the directory
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Feb 2008 19:51:03 +0000 (14:51 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Feb 2008 19:51:03 +0000 (14:51 -0500)
  they're in has changed.

IkiWiki/Plugin/recentchanges.pm
debian/changelog
doc/plugins/recentchanges/discussion.mdwn

index e23ee491fa6f7f20334ee8acce31af865e56c4cb..22f934f2e8becec79e9fc8dfae6f0f1ffbd90949 100644 (file)
@@ -28,7 +28,7 @@ sub refresh ($) { #{{{
        
        # delete old and excess changes
        foreach my $page (keys %pagesources) {
-               if ($page=~/^\Q$config{recentchangespage}\E\/change_/ && ! $seen{$page}) {
+               if ($page =~ /\._change$/ && ! $seen{$page}) {
                        unlink($config{srcdir}.'/'.$pagesources{$page});
                }
        }
index e736e763149942b2e45a4982b5338900695e86ca..99ee5cdc2b362da57db7e0ce02ad3c4ef3fb4626 100644 (file)
@@ -17,6 +17,8 @@ ikiwiki (2.31) UNRELEASED; urgency=low
   * recentchanges: Improve handling of links on the very static changes pages
     by thunking to the CGI, which can redirect to the page, or allow it to be
     created if it doesn't exist.
+  * recentchanges: Exipre all *._change pages, even if the directory
+    they're in has changed.
 
  -- Joey Hess <joeyh@debian.org>  Sat, 02 Feb 2008 23:36:31 -0500
 
index 922493fe89a4d8ef0d9e3051b873f34fe68e1a45..a16cb5217a5f3efd76af22eaaa39f0e21b325b3f 100644 (file)
@@ -12,3 +12,6 @@ that the pages from the old hierarchy will not be removed from the disk.  But th
 this should be a rather uncommon thing.
 
 --[[tschwinge]]
+
+> And fixed this, by making it look at all *._change pages, not just
+> those in a specific directory, when deciding which to expire. --[[Joey]]