use in-memory cache for webengine

no need to persist things to disk, as we have a local copy in most
cases anyway
This commit is contained in:
Damien Elmes 2017-01-08 20:02:49 +10:00
parent f104044a09
commit a172af11a1

View File

@ -74,6 +74,8 @@ class AnkiWebView(QWebEngineView):
self._loadFinishedCB = None self._loadFinishedCB = None
self.setPage(self._page) self.setPage(self._page)
self._page.profile().setHttpCacheType(QWebEngineProfile.MemoryHttpCache)
self.resetHandlers() self.resetHandlers()
self.allowDrops = False self.allowDrops = False
self.setCanFocus(canFocus) self.setCanFocus(canFocus)