Specifies the private cache directory if caching is used.

object.SetPrivateCacheDir directory 


Required. A Chart object.
Required. A string that specifies the private cache 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

VBScript Sample Code

The following VBScript code illustrates use of the SetPrivateCacheDir method.

'Create the chart series
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
Response.Write chart.GetHTMLTag

See Also

SetCacheName Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object