Silverlight report viewer not clearing cache

2 posts, 0 answers
  1. Aleksandar
    Aleksandar avatar
    11 posts
    Member since:
    Nov 2012

    Posted 06 Jun Link to this post

    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=""><s:Body><RenderAndCache xmlns="Telerik.ReportService"><format></format><report></report><deviceInfo xmlns:d4p1="" xmlns:i=""><d4p1:KeyValueOfstringanyType><d4p1:Key>InvalidSessions</d4p1:Key><d4p1:Value xmlns:d6p1="" i:type="d6p1:string">["035e4409-655c-49ab-a5b0-b9bf5e0d9859"]</d4p1:Value></d4p1:KeyValueOfstringanyType></deviceInfo><parameters xmlns:d4p1="" i:nil="true" xmlns:i="" /></RenderAndCache></s:Body></s:Envelope>

  2. Stef
    Stef avatar
    2920 posts

    Posted 07 Jun Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top