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.

This commit is contained in:
Matthew Connelly 2015-11-06 16:31:38 +00:00
parent bb1887dd93
commit b196675924
1 changed files with 1 additions and 1 deletions

View File

@ -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$/;