gristlabs_grist-core/app
Alex Hall cbdbe3f605 (core) Switch webhook secret cache from LRU to TTL so that unsubscribing can drain the queue
Summary:
Helps with cases such as https://grist.slack.com/archives/C02EGJ1FUCV/p1652196111066649?thread_ts=1651656433.171889&cid=C02EGJ1FUCV

When a user unsubscribes from a webhook, the secret URL is deleted from the database, but as long as the doc was open it would continue retrying pending requests still in the queue for a long time, using the locally cached value without noticing the effect of unsubscribing. This change allows unsubscribing to have an effect more quickly so that problematic events can be removed from the queue.

Test Plan: existing tests

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3430
2022-05-16 18:02:19 +02:00
..
client (core) Selection for styled columns 2022-05-13 09:45:17 +02:00
common (core) Add AzureExternalStorage 2022-05-09 21:44:57 +02:00
gen-server (core) Add flexibility to daily API usage limit 2022-04-28 16:22:18 +02:00
plugin (core) Improving custom widget API. Changing destroy function signature. 2022-05-05 16:34:26 +02:00
server (core) Switch webhook secret cache from LRU to TTL so that unsubscribing can drain the queue 2022-05-16 18:02:19 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00