Specifies the private cache directory if caching is used.

void object->SetPrivateCacheDir( string directory )

Arguments

object
Required. A Chart object.
directory
Required. A string that specifies the private cache directory.

Remarks

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


PHP Sample Code

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();

See Also

SetCacheName Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object