From 803d5d08f180b5b59a3a5e63191f0a391270fe83 Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Wed, 11 Mar 2015 22:24:30 +0000 Subject: [PATCH] stats are interesting, keep track of how long it takes to generate internal caches and rss --- blogalba | 4 ++-- layout/foot.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blogalba b/blogalba index 25cfb3a..13ea09e 100755 --- a/blogalba +++ b/blogalba @@ -160,13 +160,13 @@ sub do_cache { my @nav; push @nav, {navname => $_->{title}, navurl => "$blog->{url}$_->{filename}",} for @pages; push @nav, {navname => $_, navurl => $blog->{links}->{$_},} for sort { $b cmp $a } keys $blog->{links}; + generate_feed; %defparams = ( INDEX => 0, NAV => [@nav], url => $blog->{url}, recent => [@posts[0 .. ($#posts > ($blog->{config}->{rss_posts}-1)? ($blog->{config}->{rss_posts}-1) : $#posts)]], - gentime => timefmt($lastcache, '%H:%M %e/%-m/%y %Z'), host => $HOST, + gentime => timefmt($lastcache, '%H:%M %e/%-m/%y %Z'), genworktime => (time - $lastcache), host => $HOST, about => $blog->{about}, author => $blog->{author}, name => $blog->{name}, tagline => $blog->{tagline}, keywords => $blog->{keywords}, robots => $blog->{config}->{indexable}? '' : '', ); - generate_feed; pagination_calc; } diff --git a/layout/foot.inc b/layout/foot.inc index ab36e2d..ad54945 100644 --- a/layout/foot.inc +++ b/layout/foot.inc @@ -8,7 +8,7 @@