Showing results for 
Search instead for 
Did you mean: 

Clearing the Traffic Manager Content Cache

(Originally posted by Owen Garrett on Sept 9, 2006. Updated by Paul Wallace on 31st January 2014)


The following Perl example illustrates how to invoke the System.Cache.clearWebCache() method to clear the content cache on the local Traffic Manager or Load Balancer.


#!/usr/bin/perl -w
use SOAP::Lite0.60;

# This is the url of the ZXTM admin server - CHANGE THIS
my $admin_server ='https://adminSmiley Tongue[email protected]:9090';
my $conn = SOAP::Lite
  -> ns('')
  -> proxy("$admin_server/soap")
  -> on_fault(sub{
      my( $conn, $res )[email protected]_;
      dieref $res ? $res->faultstring : $conn->transport->status;});

Version history
Revision #:
2 of 2
Last update:
‎06-14-2019 02:00:AM
Updated by:

Hi Emarcus,


Gr8 stuff. Could you please guide how we could clear a specific cached object using the zeus api. Suppose I have a cached copy & and I want to use script to flush cache whenever I modify my content by passing the modified content name in a file.




Hi Ranjan,


Sorry for the late reply.  Looking through the Stingray Control API documentation found here:


There is clearMatchingCacheContent (protocol, host_wildcard, path_wildcard), so try something like:


clearMatchingCacheContent('http', "", "static/image.gif");

clearMatchingCacheContent('https', "", "static/image.gif");




clearMatchingCacheContent('both', "", "static/image.gif);


To cover both http and https.  Hope this helps.