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

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.

VBScript Sample Code

The following VBScript code illustrates use of the ClearCache method.

'Create the chart series
chart.SetDataFromQuery
chart.LoadStyle "C:\myStyle.scs"

'Force the cache to be cleared
If is_it_midnight Then
  chart.ClearCache
End If

'The chart is complete, we can now generate the movie
Response.Write chart.GetHTMLTag

See Also

SetMaxCacheSize Method | SetCacheName Method | SetPrivateCacheDir Method | UseCache Method

Applies To: Chart Object