Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies the private cache directory if caching is used.

Visual Basic
Public Sub SetPrivateCacheDir( directory As String )
C#
public void SetPrivateCacheDir( string directory );

Arguments

directory
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


Sample Code

The following code illustrates use of the SetPrivateCacheDir method.

Visual Basic
' Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Set a custom private cache directory
chart.SetPrivateCacheDir("D:\\swfchart\\private_cache")
C#
// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Set a custom private cache directory
chart.SetPrivateCacheDir("D:\\swfchart\\private_cache");

See Also

SetCacheName Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object