mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-16 09:43:56 -05:00
Merge pull request #1016 from matrix-org/erikj/short_circuit_cache
Don't update caches replication stream if tokens haven't advanced
This commit is contained in:
commit
49043f5ff3
1 changed files with 3 additions and 0 deletions
|
|
@ -894,6 +894,9 @@ class SQLBaseStore(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_all_updated_caches(self, last_id, current_id, limit):
|
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):
|
def get_all_updated_caches_txn(txn):
|
||||||
# We purposefully don't bound by the current token, as we want to
|
# We purposefully don't bound by the current token, as we want to
|
||||||
# send across cache invalidations as quickly as possible. Cache
|
# send across cache invalidations as quickly as possible. Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue