stats are interesting, keep track of how long it takes to generate internal caches and rss
This commit is contained in:
parent
011d47ba39
commit
803d5d08f1
4
blogalba
4
blogalba
|
@ -160,13 +160,13 @@ sub do_cache {
|
||||||
my @nav;
|
my @nav;
|
||||||
push @nav, {navname => $_->{title}, navurl => "$blog->{url}$_->{filename}",} for @pages;
|
push @nav, {navname => $_->{title}, navurl => "$blog->{url}$_->{filename}",} for @pages;
|
||||||
push @nav, {navname => $_, navurl => $blog->{links}->{$_},} for sort { $b cmp $a } keys $blog->{links};
|
push @nav, {navname => $_, navurl => $blog->{links}->{$_},} for sort { $b cmp $a } keys $blog->{links};
|
||||||
|
generate_feed;
|
||||||
%defparams = (
|
%defparams = (
|
||||||
INDEX => 0, NAV => [@nav], url => $blog->{url}, recent => [@posts[0 .. ($#posts > ($blog->{config}->{rss_posts}-1)? ($blog->{config}->{rss_posts}-1) : $#posts)]],
|
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},
|
about => $blog->{about}, author => $blog->{author}, name => $blog->{name}, tagline => $blog->{tagline}, keywords => $blog->{keywords},
|
||||||
robots => $blog->{config}->{indexable}? '<meta name="ROBOTS" content="INDEX, FOLLOW" />' : '<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />',
|
robots => $blog->{config}->{indexable}? '<meta name="ROBOTS" content="INDEX, FOLLOW" />' : '<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />',
|
||||||
);
|
);
|
||||||
generate_feed;
|
|
||||||
pagination_calc;
|
pagination_calc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<a href="https://github.com/MaffC/BlogAlba">BlogAlba</a> + <a href="http://lighttpd.net">lighttpd</a> + <a href="http://freebsd.org">freebsd</a> + <a href="http://digitalocean.com">digitalocean</a><br />
|
<a href="https://github.com/MaffC/BlogAlba">BlogAlba</a> + <a href="http://lighttpd.net">lighttpd</a> + <a href="http://freebsd.org">freebsd</a> + <a href="http://digitalocean.com">digitalocean</a><br />
|
||||||
Served by <TMPL_VAR NAME="host">, generated at <TMPL_VAR NAME="gentime">
|
Served by <TMPL_VAR NAME="host">, generated at <TMPL_VAR NAME="gentime"> (took <TMPL_VAR NAME="genworktime"> seconds)
|
||||||
</footer>
|
</footer>
|
||||||
<!--
|
<!--
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue