mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
bug fixes
This commit is contained in:
parent
e10830e976
commit
886be75ad1
5 changed files with 10 additions and 27 deletions
|
@ -54,7 +54,7 @@ class MonthlyActiveUsersStore(SQLBaseStore):
|
|||
"""
|
||||
txn.execute(sql, (self.hs.config.max_mau_value,))
|
||||
|
||||
res = yield self.runInteraction("reap_monthly_active_users", _reap_users)
|
||||
yield self.runInteraction("reap_monthly_active_users", _reap_users)
|
||||
# It seems poor to invalidate the whole cache, Postgres supports
|
||||
# 'Returning' which would allow me to invalidate only the
|
||||
# specific users, but sqlite has no way to do this and instead
|
||||
|
@ -64,7 +64,6 @@ class MonthlyActiveUsersStore(SQLBaseStore):
|
|||
# something about it if and when the perf becomes significant
|
||||
self._user_last_seen_monthly_active.invalidate_all()
|
||||
self.get_monthly_active_count.invalidate_all()
|
||||
return res
|
||||
|
||||
@cached(num_args=0)
|
||||
def get_monthly_active_count(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue