Contents tagged with RequestRefresh

  • How to refresh cache of Acumatica

    Hello everybody,

    today I want to leave a comment on how to refresh cache of Acumaitca.

    As usually I start with this method:

    ViewName.View.RequestRefresh();

    But I found that it not always work. For my surprise RequestRefresh not works for some reasons. I think reason for this may be that Acumatica has two caches: caching of data and caching of queries.  

    If that is the case, I use another approach ( more hardcore ) 

    ViewName.View.Cache.Clear(); // clearing cached data

    ViewName.View.Cache.ClearQueryCache(); // clearing cached queries.

    Second approach works a bit better, because it clears not only data, but also clears cached queries, and as outcome clearing results more