mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-13 19:53:28 +01:00
Add query to update local cache of a remote user's device list to docs (#16892)
This commit is contained in:
parent
cb562d73aa
commit
1c1b0bfa77
2 changed files with 10 additions and 0 deletions
1
changelog.d/16892.doc
Normal file
1
changelog.d/16892.doc
Normal file
|
@ -0,0 +1 @@
|
|||
Add a query to force a refresh of a remote user's device list to the "Useful SQL for Admins" documentation page.
|
|
@ -205,3 +205,12 @@ SELECT user_id, device_id, user_agent, TO_TIMESTAMP(last_seen / 1000) AS "last_s
|
|||
FROM devices
|
||||
WHERE last_seen < DATE_PART('epoch', NOW() - INTERVAL '3 month') * 1000;
|
||||
```
|
||||
|
||||
## Clear the cache of a remote user's device list
|
||||
|
||||
Forces the resync of a remote user's device list - if you have somehow cached a bad state, and the remote server is
|
||||
will not send out a device list update.
|
||||
```sql
|
||||
INSERT INTO device_lists_remote_resync
|
||||
VALUES ('USER_ID', (EXTRACT(epoch FROM NOW()) * 1000)::BIGINT);
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue