X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=fad2c11a4a63c53381aef8a313dc4b68150ad1c9;hp=2522ede043b6a84111c47023f2e116584a6bf5b7;hb=a4678aa28838ca87f24021915b68a96846b63cee;hpb=0c04977548139a7c39cdf6afcd4bb174d59aaaf7 diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 2522ede..fad2c11 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -1,4 +1,4 @@ -%# $Id: stats.mc,v 1.2 2006-12-15 10:37:29 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,15 @@ 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"); +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";