This is a migrated thread and some comments may be shown as answers.

How to clear a database cache

1 Answer 449 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcos
Top achievements
Rank 1
Marcos asked on 03 Mar 2014, 11:52 AM
Environment: Visual Studio 2012 Up 4, MVC 4 application, Kendo.Mvc (2013.3.1324.440), Telerik.Reporting.* (7.2.14.127)

I am using "HTML5 Report Viewer" and a Custom Provider to hold the cache in a database.
Everything is working fine, however the cache saved in a database stays there forever.
How can I clear de cache? What the best time to do that?

Best regards,
Marcos Bernardelli

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 06 Mar 2014, 10:18 AM
Hi Marcos,

The default provided cache providers clear the cache on requests for new reports or ending the session. There are also expiration settings to clear left cache records. With custom cache provider you can implement this logic in the provider or additionally clean the storage once you determine the user has ended his work with the viewer. Clearing the cache during the user interaction may break the application.

I hope this information helps you.

Regards,
Stef
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Tags
General Discussions
Asked by
Marcos
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or