ReportCacheMode

Stimulsoft Reports.NET discussion
Post Reply
joro
Posts: 63
Joined: Wed Jan 27, 2010 7:35 am

ReportCacheMode

Post by joro »

Hello,

we have some Reports with an activated ReportCacheMode Option -> ReportCacheMode=ON.
It seems like ReportCacheMode creates some directories and files but does not clean them up properly.
ReportCacheModeDirectories.jpg
ReportCacheModeDirectories.jpg (52.55 KiB) Viewed 1693 times
We have about 625.458 emtpy folders in the AppData of the user that hosts our service.

Can you please tell me how ReportCacheMode exactly works and why it isn't cleaning up the directories properly. (All directories are emtpy - no files in them).

BR
joro
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ReportCacheMode

Post by Alex K. »

Hello,

Please clarify which version you are use?
Also please check that you dispose reports after design or show. We are uses standard .NET method dispose, but this method not always calls.

Thank you.
joro
Posts: 63
Joined: Wed Jan 27, 2010 7:35 am

Re: ReportCacheMode

Post by joro »

Hello,

we are using 2013.2.1700.0. An update is not possible at the moment.
I think that we dispose the reports correctly otherwise we would experience memory leaks on our server leading to OutOfMemory exceptions. But memory consumption of our application is not very high.

What does ReportCacheMode do in detail?
Precompiling the mrt files? Parsing and transformation to DOM of the XML inside the mrt?

Could you please explain in detail what ReportCacheMode does?

BR
joro
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: ReportCacheMode

Post by Jan »

Hello Joro,

Report engine saves serialized version of each page (or block of pages in latest versions of engine) to this folder when cache mode is activated. So report engine can work with big reports without high memory consumption.
Usually when you call Dispose method of StiReport object report cache mode folder (one folder for one specified report) is removed. You can manually clear all files in this folder for example on start of your application or
files/folders which created some time ago.

Thank you.
Post Reply