cancel
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('http://soap.zeus.com/zxtm/1.0/System/Cache/')
  -> proxy("$admin_server/soap")
  -> on_fault(sub{
      my( $conn, $res )[email protected]_;
      dieref $res ? $res->faultstring : $conn->transport->status;});

$conn->clearWebCache();
Version history
Revision #:
2 of 2
Last update:
‎06-14-2019 02:00:AM
Updated by:
 
Contributors
Comments

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 http://abc.com/static/image.gif & https://abc.com/static/image.gif and I want to use script to flush cache whenever I modify my content by passing the modified content name in a file.

 

Thanks,

Ranjan

Hi Ranjan,

 

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

 

https://support.riverbed.com/download.htm?filename=public/doc/stingray/developer_edition/Stingray_9....

 

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

 

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

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

 

or

 

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

 

To cover both http and https.  Hope this helps.

 

Thanks,

Faisal