From b9425a0a6abc789cf9ddf9b52ec6099fe1ef55b1 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 29 Sep 2013 10:08:27 +0000 Subject: [PATCH] Additional monitoring of a busy server showed that it was the cache only that needed to be removed. --- .../resources/scripts/directory/directory.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua b/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua index 3144e4d1f7..74a41b745f 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua @@ -347,6 +347,17 @@ end end --if action +--if the extension does not exist send "not found" + if (trim(XML_STRING) == "-ERR NOT FOUND" or XML_STRING == nil) then + --send not found but do not cache it + XML_STRING = [[ + +
+ +
+
]]; + end + --send the xml to the console if (debug["xml_string"]) then freeswitch.consoleLog("notice", "[xml_handler] XML_STRING: \n" .. XML_STRING .. "\n");