diff options
Diffstat (limited to 'web/api/read/switches-management')
-rwxr-xr-x | web/api/read/switches-management | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/api/read/switches-management b/web/api/read/switches-management index 8d899b7..33fc6ab 100755 --- a/web/api/read/switches-management +++ b/web/api/read/switches-management @@ -10,7 +10,8 @@ use strict; use warnings; use Data::Dumper; -$nms::web::cc{'max-age'} = "60"; +$nms::web::cc{'max-age'} = "5"; +$nms::web::cc{'stale-while-revalidate'} = "30"; my $q2 = $nms::web::dbh->prepare('select sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,last_updated,distro_phy_port,community from switches where placement is not null'); |