New to Telerik Reporting? Download free 30-day trial

Configuring the File Cache Provider

The cache settings mentioned in this article are not obligatory, and they do not apply to the HTML5 Report Viewer or its Angular, WebForms, MVC and other wrappers. Details about the Cache Storage of the Reporting REST Service that works with the HTML5 Report Viewer are available in Report Viewer and Reporting REST services and REST Service Storage Settings.

The file cache provider is used to cache rendered pages and resources as temporary files on disk. This can help reducing the memory footprint of the application without sacrificing the performance significantly. It is necessary to configure the Telerik Reporting Configuration Section first and then use the following XML snippet that configures the viewers in the application to use the file cache provider:

    <Cache provider="File" />

By default, this provider stores the files in the temporary folder of the current user. However it can be configured to store the files in another location by specifying the "BasePath" parameter, as illustrated below:

    <Cache provider="File">
            <Provider name="File">
                    <Parameter name="BasePath" value="C:\MyDataCache" />

The BasePath can represent either an absolute path on disk or a relative path. In the latter case the path is mapped to the application’s working directory.

In web applications deployed on a web farm, the BasePath parameter should specify a shared folder with the necessary permissions which should be accessible from all servers.

See Also

In this article