Skip to main content

As per Box documentation, the clearCache function of Content Explorer should force reload the items. But when I call the same function, I don’t see any reload of items in Content Explorer widget.



I am using Content Explorer version 17.1.0.



/**





  • Clears out the internal in-memory


  • cache for the content explorer forcing


  • re-load of items via the API.




  • @public


  • @return {void}


    */


    contentExplorer.clearCache();




Any errors on the console?


There are no errors on the console.


Hey @Niladri!



I can see where there’s confusion with that comment. The clearCache() method won’t actually immediately re-load the items, it just means the next time a network request should be made, it will not use any cached result.



You can see the implementation of the method here:






Hi @tjuanitas,



It’s great to have a better understanding of how the “clearCache” method operates, thanks to your explanation.


Reply