Skip to content
Snippets Groups Projects
Commit 49043f5f authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #1016 from matrix-org/erikj/short_circuit_cache

Don't update caches replication stream if tokens haven't advanced
parents 16284039 94962929
No related branches found
No related tags found
No related merge requests found
......@@ -894,6 +894,9 @@ class SQLBaseStore(object):
)
def get_all_updated_caches(self, last_id, current_id, limit):
if last_id == current_id:
return defer.succeed([])
def get_all_updated_caches_txn(txn):
# We purposefully don't bound by the current token, as we want to
# send across cache invalidations as quickly as possible. Cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment