From b196675924c7a51146910c1f7647f26dc3142afe Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Fri, 6 Nov 2015 16:31:38 +0000 Subject: [PATCH] Fixed a really stupid bug that resulted in blogalba's internal number of posts (and as a result, all pagination) would grow exponentially over time. --- blogalba | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blogalba b/blogalba index 109d9af..0c854b1 100755 --- a/blogalba +++ b/blogalba @@ -154,7 +154,7 @@ sub generate_feed { sub do_cache { return if $lastcache > (time - 3600); $lastcache = time;my $st=[gettimeofday]; - undef @posts;undef @pages; + undef @posts;undef @pages;$nposts=0; opendir POSTS, "$basedir/posts/" or die "Couldn't open posts directory $basedir/posts/"; while(readdir POSTS) { next unless /\.md$/;