aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/private/switch-add
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-03-16 19:55:11 +0000
committerKristian Lyngstol <kly@kly.no>2016-03-16 19:55:11 +0000
commite3244501e89df95c6cb3ad2b9efc7e708ec9b1bb (patch)
tree420b1acdafaf1378b663b54ec8e2bfe9d71e9c93 /web/nms.gathering.org/api/private/switch-add
parent314bc052854aabb44dd9272ddd82176be5c469d5 (diff)
NMS: Fix production-grade cache :D
Seems to work fine, both with caching and cache invalidation. (e.g.: moving a switch, adding ac omment). Might have missed something, of course.
Diffstat (limited to 'web/nms.gathering.org/api/private/switch-add')
-rwxr-xr-xweb/nms.gathering.org/api/private/switch-add1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/nms.gathering.org/api/private/switch-add b/web/nms.gathering.org/api/private/switch-add
index 92479f0..e50b9a5 100755
--- a/web/nms.gathering.org/api/private/switch-add
+++ b/web/nms.gathering.org/api/private/switch-add
@@ -112,4 +112,5 @@ foreach my $tmp2 (@tmp) {
$json{'switches_addded'} = \@added;
$json{'switches_updated'} = \@dups;
+print "X-ban: /api/.*switches.*\n";
finalize_output();