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

Silverlight report viewer not clearing cache

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleksandar
Top achievements
Rank 1
Iron
Aleksandar asked on 06 Jun 2016, 04:04 PM
The Silverlight report viewer control never clears the cache out of the database. Steps to reproduce:

1. Configure the database cache provider with mssql as defined in the documentation.

2. View a report by setting the Report property of the viewer with the class name of the report.

3. Clear the report when the user is done viewing the report by setting the Report property of the viewer to null.

I see the request to invalidate the report session, but the cached data remains in the database.

Raw request:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><RenderAndCache xmlns="Telerik.ReportService"><format></format><report></report><deviceInfo xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><d4p1:KeyValueOfstringanyType><d4p1:Key>InvalidSessions</d4p1:Key><d4p1:Value xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string">["035e4409-655c-49ab-a5b0-b9bf5e0d9859"]</d4p1:Value></d4p1:KeyValueOfstringanyType></deviceInfo><parameters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" /></RenderAndCache></s:Body></s:Envelope>

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Jun 2016, 02:48 PM
Hi Aleksandar,

The old cache mechanism does not include automatic clearance of unused entries. You will need to add custom functionality to clear the cache database.

If you switch to the new HTML5 Viewer (HTML/JS/CSS) based widget, it is served by the dedicated Reporting REST service. The service has timeouts letting it know when to clear old entries from the specified storage. For more details, please check Cache Management.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aleksandar
Top achievements
Rank 1
Iron
Answers by
Stef
Telerik team
Share this question
or