synapse-old/synapse
reivilibre f3dc6dc19f
Remove old rows from the `cache_invalidation_stream_by_instance` table automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868)
* Add a cache invalidation clean-up task

* Run the cache invalidation stream clean-up on the background worker

* Tune down

* call_later is in millis!

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>

* fixup! Add a cache invalidation clean-up task

* Update synapse/storage/databases/main/cache.py

Co-authored-by: Eric Eastwood <erice@element.io>

* Update synapse/storage/databases/main/cache.py

Co-authored-by: Eric Eastwood <erice@element.io>

* MILLISEC -> MS

* Expand on comment

* Move and tweak comment about Postgres

* Use `wrap_as_background_process`

---------

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
Co-authored-by: Eric Eastwood <erice@element.io>
2023-08-08 11:10:07 +01:00
..
_scripts Properly setup the additional sequences in the portdb script. (#16043) 2023-08-01 10:36:33 -04:00
api Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
app Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
appservice Move support for application service query parameter authorization behind a configuration option (#16017) 2023-08-03 11:43:51 -07:00
config Stabilize support for MSC3970: updated transaction semantics (scope to `device_id`) (#15629) 2023-08-04 07:47:18 -04:00
crypto Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
events Drop backwards compat hack for event serialization (#16069) 2023-08-07 10:37:08 -07:00
federation Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00
handlers Fix deletion for Dehydrated Devices (#16046) 2023-08-04 10:49:54 -07:00
http Don't log exceptions for every non-200 response (#15969) 2023-07-20 11:07:58 +01:00
logging Unix Sockets for HTTP Replication (#15708) 2023-07-11 13:08:06 -05:00
media Make the media `/upload` tracing less ambiguous (#15888) 2023-07-10 17:23:11 -05:00
metrics Quick & dirty metric for background update status (#15740) 2023-06-07 17:12:23 +00:00
module_api Allow modules to check whether the current worker is configured to run background tasks. (#15991) 2023-08-03 08:42:19 -04:00
push Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
replication Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00
res Use oEmbed for YouTube Shorts (#15025) 2023-05-03 12:54:42 -04:00
rest Fix endpoint improperly declaring support for MSC3814 (#16068) 2023-08-07 10:52:15 -07:00
server_notices Remove unused `room_alias` field from `/createRoom` response (#15093) 2023-02-22 11:07:28 +00:00
spam_checker_api Fix import in module_api module and docs on the new check_event_for_spam signature (#12918) 2022-05-31 12:04:53 +02:00
state Speed up updating state in large rooms (#15971) 2023-07-20 15:51:28 +01:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Remove old rows from the `cache_invalidation_stream_by_instance` table automatically. (This table is not used when Synapse is configured to use SQLite.) (#15868) 2023-08-08 11:10:07 +01:00
streams Use mypy 1.0 (#15052) 2023-02-16 16:09:11 +00:00
types Stabilize support for MSC3970: updated transaction semantics (scope to `device_id`) (#15629) 2023-08-04 07:47:18 -04:00
util Allow config of the backoff algorithm for the federation client. (#15754) 2023-08-03 14:36:55 -04:00
__init__.py Remove support for Python 3.7 (#15851) 2023-07-05 18:45:42 -05:00
event_auth.py Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
notifier.py Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Stabilize support for MSC3970: updated transaction semantics (scope to `device_id`) (#15629) 2023-08-04 07:47:18 -04:00
visibility.py Log when events are (unexpectedly) filtered out of responses in tests (#14213) 2023-06-01 21:27:18 -05:00