Specifies the maximum size of the cache in KB (if caching is used).
void object->SetMaxCacheSize( int kilobytes )
If not defined in the Swiff Chart Generator Control Panel, the default maximum cache
size is 4096 KB (4 MB).
The cache is automatically managed by Swiff Chart Generator so that it never allocates
more than this amount of memory on disk.
This method overrides the Max Cache Size parameter value in the Swiff Chart Generator Control Panel as well as in the swfchart.ini configuration file
The following PHP code illustrates use of the SetMaxCacheSize method.
// Create the chart series $chart->SetDataFromQuery(); $chart->LoadStyle("C:\\myStyle.scs"); // Set the maximum cache size to 20 MB $chart->SetMaxCacheSize(20*1024); // The chart is complete, we can now generate the movie echo $chart->GetHTMLTag();
SetMaxCacheSize Method | SetPrivateCacheDir Method | ClearCache Method | UseCache Method
Applies To: Chart Object