From 3c69b8511d5fe33d584494b5eeb7390b80cb2c01 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 19 Aug 2019 11:21:32 +0100 Subject: [PATCH] cache should expire TODO --- src/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.js b/src/client.js index e81a14d1a25..646b7fa7c77 100644 --- a/src/client.js +++ b/src/client.js @@ -238,6 +238,8 @@ function MatrixClient(opts) { // The pushprocessor caches useful things, so keep one and re-use it this._pushProcessor = new PushProcessor(this); + // Cache of the server's /versions response + // TODO: This should expire: https://github.com/matrix-org/matrix-js-sdk/issues/1020 this._serverVersionsCache = null; this._cachedCapabilities = null; // { capabilities: {}, lastUpdated: timestamp }