From 820287be1769b442f101a712a0f008b739f50699 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 10 Mar 2016 19:15:17 +0000 Subject: NMS: Tweak caching and updates --- web/nms.gathering.org/api/private/port-state | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/nms.gathering.org/api/private/port-state') diff --git a/web/nms.gathering.org/api/private/port-state b/web/nms.gathering.org/api/private/port-state index 1f30181..8c6b64c 100755 --- a/web/nms.gathering.org/api/private/port-state +++ b/web/nms.gathering.org/api/private/port-state @@ -27,5 +27,7 @@ while (my $ref = $q3->fetchrow_hashref()) { $nms::web::json{'switches'}{$ref->{'sysname'}}{'temp'} = $ref->{'temp'}; $nms::web::json{'switches'}{$ref->{'sysname'}}{'temp_time'} = $ref->{'time'}; } +$nms::web::cc{'max-age'} = '2'; +$nms::web::cc{'stale-while-revalidate'} = '120'; finalize_output(); -- cgit v1.2.3