Flushes the in-memory application cache, forcing the system to reload configuration and cached data from the database and file system. This API is restricted to system administrators with the FlushApplicationCache permission.
/srv.asmx/FlushApplicationCache
/srv.asmx/FlushApplicationCache?authenticationTicket=.../srv.asmx/FlushApplicationCache (form data)http://tempuri.org/FlushApplicationCache| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
<response success="true" />
<response success="false" error="[ErrorCode] Error message" />
FlushApplicationCache admin permissionGET /srv.asmx/FlushApplicationCache?authenticationTicket=abc123-def456 HTTP/1.1
Host: server.example.com
POST /srv.asmx/FlushApplicationCache HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123-def456
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/FlushApplicationCache"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<FlushApplicationCache xmlns="http://tempuri.org/">
<authenticationTicket>abc123-def456</authenticationTicket>
</FlushApplicationCache>
</soap:Body>
</soap:Envelope>
async function flushApplicationCache() {
const ticket = getUserAuthTicket();
const response = await fetch("/srv.asmx/FlushApplicationCache", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: `authenticationTicket=${encodeURIComponent(ticket)}`
});
const xmlText = await response.text();
const parser = new DOMParser();
const xmlDoc = parser.parseFromString(xmlText, "text/xml");
const root = xmlDoc.querySelector("response");
if (root.getAttribute("success") === "true") {
console.log("Application cache flushed successfully.");
} else {
const error = root.getAttribute("error");
throw new Error(error);
}
}
using (var client = new SrvSoapClient())
{
try
{
var response = await client.FlushApplicationCacheAsync(authTicket);
var root = XElement.Parse(response.ToString());
if (root.Attribute("success")?.Value == "true")
{
Console.WriteLine("Application cache flushed successfully.");
}
else
{
var error = root.Attribute("error")?.Value;
Console.WriteLine($"Error: {error}");
}
}
catch (Exception ex)
{
Console.WriteLine($"Exception: {ex.Message}");
}
}
Settings.FlushCache() which clears the in-memory application settings cache.Common error responses:
| Error | Description |
|---|---|
[901]Session expired or Invalid ticket |
Invalid or expired authentication ticket |
[921]Insufficient rights |
User does not have FlushApplicationCache admin permission |
GetMaintenanceJobsStatus - Get maintenance jobs statusGetWarehouseStatus - Get warehouse storage statusServerInfo - Get basic server informationAuthenticateUser - Authenticate and obtain a ticket