Jump to content
We've recently updated our Privacy Statement, available here ×
  • The live dashboard does not update when hitting refresh.


    Sarthak Chaudhary
    • Features: Cache Version: v8.0.1 Product: JasperReports® Server

    Requirement: 

    The live dashboard refresh buttons are not working and the results do not update. The current workaround involves clearing the browser cache and logging back into JasperServer. This confuses the user and takes additional time for the user.

    Recommendation: 

    The reason why the data is not updating is because it did not make a request to the database but instead requested it from the Ad Hoc Cache so flushing the cache would work the first time. 
    The real issue here is that the dashboard has auto-refresh set to 2 mins but this didn't refresh the data from the database.

    To resolve this kindly follow the below steps: 

    1. Configure the ad hoc cache to flush it once a time limit has been reached:

      <cache name="adhocCache"
               timeToIdleSeconds="300"
            timeToLiveSeconds="600"

    timeToIdleSeconds: how long a cache item will stay in the cache if it's not used
    timeToLiveSeconds: maximum lifetime for a cache item, no matter how much it's used

    Then wait after 5 minutes to see whether the dashboard reflects the newer data with its auto-refresh enabled.

    2. In file  ..\WEB-INF\applicationContext-datarator.xml, set allowFlushingCacheOnPush to "true"

        <bean id="allowFlushingCacheOnPush" class="java.lang.Boolean">
            <constructor-arg value="false"/>
        </bean>

    and restart the JR Server.  But the implication here is that every refresh or report execution will be retrieved from the database which can impact db performance. This is not ideal but can be used as a workaround for the time being if it works. We should at least verify whether it works regardless of whether you want to keep the changes


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...