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:
parent
bb1887dd93
commit
b196675924
2
blogalba
2
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$/;
|
||||
|
|
Loading…
Reference in New Issue