]> source.dussan.org Git - nextcloud-server.git/commit
Add a background job to prune outdated sync tokens 31064/head
authorThomas Citharel <tcit@tcit.fr>
Sun, 2 Oct 2022 10:07:51 +0000 (12:07 +0200)
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>
Thu, 27 Oct 2022 20:12:13 +0000 (20:12 +0000)
commit6f158733211749ca6d70858ee58ba35e85d46e81
tree2648886b9c00d5278bee9514fbc7cb533e866303
parentd007088cf5d89e29065991e0cbe2c890dfa13d96
Add a background job to prune outdated sync tokens

We remove all outdated sync tokens, based on their auto-incremented ID.

By default we only keep the last 10 000, but this can be configurable.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
apps/dav/appinfo/info.xml
apps/dav/composer/composer/autoload_classmap.php
apps/dav/composer/composer/autoload_static.php
apps/dav/lib/BackgroundJob/PruneOutdatedSyncTokensJob.php [new file with mode: 0644]
apps/dav/lib/CalDAV/CalDavBackend.php
apps/dav/lib/CardDAV/CardDavBackend.php
apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
apps/dav/tests/unit/BackgroundJob/PruneOutdatedSyncTokensJobTest.php [new file with mode: 0644]
apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
apps/dav/tests/unit/CardDAV/CardDavBackendTest.php