From 7d86984a12ba9bc4ba2cae43cb00191386e9aae1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 22 Jun 2017 17:06:24 +1000 Subject: [PATCH] turn off webview cache to reduce memory footprint --- aqt/webview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/webview.py b/aqt/webview.py index d4e3ca9dd..70eaea504 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -77,7 +77,7 @@ class AnkiWebView(QWebEngineView): self.keyEventDelegate = None - self._page.profile().setHttpCacheType(QWebEngineProfile.MemoryHttpCache) + self._page.profile().setHttpCacheType(QWebEngineProfile.NoCache) self.resetHandlers() self.allowDrops = False QShortcut(QKeySequence("Esc"), self,