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/public/switch-state | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/nms.gathering.org/api/public/switch-state') diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state index e494e6d..999a1d8 100755 --- a/web/nms.gathering.org/api/public/switch-state +++ b/web/nms.gathering.org/api/public/switch-state @@ -41,4 +41,6 @@ while (my $ref = $qs->fetchrow_hashref()) { $nms::web::json{'switches'}{$ref->{'switch'}}{'latency_secondary'} = $ref->{'latency_ms'}; } +$nms::web::cc{'max-age'} = "5"; +$nms::web::cc{'stale-while-revalidate'} = "30"; finalize_output(); -- cgit v1.2.3