Forces the cache to be cleared (if caching is used).
void object->ClearCache( )
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.
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();
SetMaxCacheSize Method | SetCacheName Method | SetPrivateCacheDir Method | UseCache Method
Applies To: Chart Object