From a172af11a1963adc3c4aeaa8132c62e5b1fde0c1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 8 Jan 2017 20:02:49 +1000 Subject: [PATCH] use in-memory cache for webengine no need to persist things to disk, as we have a local copy in most cases anyway --- aqt/webview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/webview.py b/aqt/webview.py index f240350cd..bd5b8b660 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -74,6 +74,8 @@ class AnkiWebView(QWebEngineView): self._loadFinishedCB = None self.setPage(self._page) + + self._page.profile().setHttpCacheType(QWebEngineProfile.MemoryHttpCache) self.resetHandlers() self.allowDrops = False self.setCanFocus(canFocus)