Skip to content

clear toga webview cache for android #3485

Answered by freakboy3742
Jzhenli asked this question in Q&A
Discussion options

You must be logged in to vote

If the method exists on the native API, it can be invoked. In this instance, you should be able to call mywebview._impl.native.clearCache(True). That won't be cross platform, as it's touching a native API; but you can put an if toga.current_platform == 'android' check around the call.

If we can find an analogous cache flush mechanism on other platforms, we could wrap this up as a cross-platform API.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Jzhenli
Comment options

@freakboy3742
Comment options

Answer selected by Jzhenli
@Jzhenli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants