Forces the cache to be cleared (if caching is used).

void object.ClearCache( )

Arguments

object
Required. A Chart object.

Remarks

This function should not be called in normal use, since the cache is automatically managed by Swiff Chart Generator.
However, it can be useful for forcing the cache to be cleared.

JSP Sample Code

The following JSP code illustrates use of the ClearCache method.

// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Force the cache to be cleared
if( is_it_midnight )
  chart.ClearCache();

// The chart is complete, we can now generate the movie
out.println( chart.GetHTMLTag() );

See Also

SetMaxCacheSize Method | SetCacheName Method | SetPrivateCacheDir Method | UseCache Method

Applies To: Chart Object