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.

PHP Sample Code

The following PHP 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 )
  $chart->ClearCache();

// The chart is complete, we can now generate the movie
echo $chart->GetHTMLTag();

See Also

SetMaxCacheSize Method | SetCacheName Method | SetPrivateCacheDir Method | UseCache Method

Applies To: Chart Object