Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    What's the best way to invalidate all the widget caches throughout the entire application without reloading the app?

    Hello,

    we have an application that now shares a database with a maintenance system that can change the database directly those bypassing SmartGWT server infrastructure. There's no way of knowing what data has been changed, so we need to basically "reload" the app preferably without reloading all the javascript once the maintenance happens. Would constructing and sending a DSResponse from the server with a list of related updates that includes every datasource with invalidate cache flag set to true be a good way to achieve it or there's a better way?

    #2
    You can do that without server involvement by just using DataSource.updateCaches().

    Bear in mind reloading shouldn't be reloading the JavaScript, just pulling it from browser cache.

    Comment


      #3
      Thank you!

      Comment

      Working...
      X