I might not be able to get the existing instance to run this... that's why i asked if i can create another one and use it to clear for the whole app.
I tried doing it with: *mXWalkView = (XWalkView)rootView.findViewById(R.id.webview);* *mXWalkView.clearCache(true);* but it didn't seem to work. I stay logged in some pages after running it. 2015-05-24 21:47 GMT-03:00 Xu, Xing <[email protected]>: > Hi, Luis, > > For your 1st question, yes. Can you get the instance of existence > XWalkView to do this? > > > > For you 2nd, this will first clear memory cache. Memory cache caches > http resource in RAM. > > And if includeDiskFiles is true, this will clear Disk cache too. Disk > cache usually points to a folder where cached data will be stored. > > For more detail about disk cache, you can refer to > https://www.chromium.org/developers/design-documents/network-stack/disk-cache > . > > > > Regards, > > Xing > > > > *From:* Luis Tiago Eterovick [mailto:[email protected]] > *Sent:* Saturday, May 23, 2015 4:27 AM > *To:* Xu, Xing > *Cc:* <[email protected]> > *Subject:* Re: [Crosswalk-dev] How to clear authentications > > > > This might work. > > Since the cache is per-application, can i use this to clear the cache in a > context different from the one I'm using XWalkView? > > Can't use as a static method, so maybe i should create a new empty > XWalkView just to clear the cache? > > > > What's the difference in clearing disk files for cache or not? > > > > Thanks > > > > 2015-05-22 2:25 GMT-03:00 Xu, Xing <[email protected]>: > > Hi, Is this what you want? > > /** > > * Clear the resource cache. Note that the cache is per-application, > so this > > * will clear the cache for all XWalkViews used. > > * @param includeDiskFiles indicate whether to clear disk files for > cache. > > */ > > XWalkView.clearCache(boolean includeDiskFiles) { > > > > > > *From:* Crosswalk-dev [mailto: > [email protected]] *On Behalf Of *Luis > Tiago Eterovick > *Sent:* Friday, May 22, 2015 11:30 AM > *To:* <[email protected]> > *Subject:* [Crosswalk-dev] How to clear authentications > > > > How can i clear authentications made in web tools inside the xwalk webview? > > Maybe history too.. > > > > Thanks > > >
_______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
