X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=f44c349503e047452b2846ba5a7629bc1ab31fa7;hb=15dce7cdea43a6606ddf025aa236d429d7ff2910;hp=31a4fe5aef9c2358ea9c115e78569219f811659e;hpb=66f3f852e38bbb394b618401af27812c1b52a6ca;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 31a4fe5..f44c349 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -27,8 +27,9 @@ my $from_cache = 1; my $stats = $m->cache->get($key); if (!defined $stats || $reload) { $from_cache = 0; - $stats = new ZOOM::IRSpy::Stats("localhost:8018/IR-Explain---1", $query); - $m->cache->set($key, $stats, "10 minutes"); + my $db = ZOOM::IRSpy::connect_to_registry(); + $stats = new ZOOM::IRSpy::Stats($db, $query); + $m->cache->set($key, $stats, "1 day"); }

Statistics for <% xml_encode($stats->{host}) %>