X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=fad2c11a4a63c53381aef8a313dc4b68150ad1c9;hb=eae0cc5511d06761d8067d7046d110ba8f25dd64;hp=354cb541f0904e4fa8bb0a3a87694377f534dbd1;hpb=b1b7cee3199cd3854846c300770a53398da6fc30;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 354cb54..fad2c11 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -1,4 +1,4 @@ -%# $Id: stats.mc,v 1.1 2006-12-14 17:35:44 mike Exp $ +%# $Id: stats.mc,v 1.3 2006-12-15 14:37:03 mike Exp $ <%doc> Here are the headings in the Z-Spy version: The ten most commonly supported Bib-1 Use attributes @@ -18,7 +18,16 @@ records in order to find all the results, so we just take the path of least resistance and look at all the records by hand. <%perl> -my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1"); -use Data::Dumper; -print "
", xml_encode(Dumper($stats)), "
\n"; +my $stats = $m->cache->get("stats"); +if (defined $stats) { + print "

Reusing cached result

\n"; + print "stats=$stats\n"; +} else { + print "

Recalculating stats

\n"; + $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1"); + $m->cache->set("stats", $stats, "1 minute"); +} +print "
";
+$stats->print();
+print "
\n";