From e57749b702137b925064b60120ea22a98965c7d5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Feb 2008 14:51:03 -0500 Subject: [PATCH] * recentchanges: Exipre all *._change pages, even if the directory they're in has changed. --- IkiWiki/Plugin/recentchanges.pm | 2 +- debian/changelog | 2 ++ doc/plugins/recentchanges/discussion.mdwn | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index e23ee491f..22f934f2e 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -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}); } } diff --git a/debian/changelog b/debian/changelog index e736e7631..99ee5cdc2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 02 Feb 2008 23:36:31 -0500 diff --git a/doc/plugins/recentchanges/discussion.mdwn b/doc/plugins/recentchanges/discussion.mdwn index 922493fe8..a16cb5217 100644 --- a/doc/plugins/recentchanges/discussion.mdwn +++ b/doc/plugins/recentchanges/discussion.mdwn @@ -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]] -- 2.32.0.93.g670b81a890