diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-10 19:15:17 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-10 19:15:17 +0000 |
commit | 820287be1769b442f101a712a0f008b739f50699 (patch) | |
tree | b8e8311257051ae4ddedbce3c755bc59bfb77c33 /web/nms.gathering.org/api/private/port-state | |
parent | b8314f8319f00c9bb507d67f11ab8e75d1ca659f (diff) |
NMS: Tweak caching and updates
Diffstat (limited to 'web/nms.gathering.org/api/private/port-state')
-rwxr-xr-x | web/nms.gathering.org/api/private/port-state | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |