Specifies the private cache directory if caching is used.
void object->SetPrivateCacheDir( string directory )
If not defined in the Swiff Chart Generator Control Panel, the default private cache directory is set to the public cache.
The public cache directory stores the index files necessary for charts caching. For security reasons, you
may want to stores these index files (which record private parameters) in a directory that is not
accessible by web users.
This directory can be anywhere on your server.
This method overrides the Private Cache Directory 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 SetPrivateCacheDir method.
// Create the chart series $chart->SetDataFromQuery(); $chart->LoadStyle("C:\\myStyle.scs"); // Set a custom private cache directory $chart->SetPrivateCacheDir("D:\\swfchart\\private_cache"); // The chart is complete, we can now generate the movie echo $chart->GetHTMLTag();
SetCacheName Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method
Applies To: Chart Object