fix(snowflakes): fix APCu cache restarted detection

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
Benjamin Gaussorgues 2025-11-03 14:21:30 +01:00
parent 69ec2ce26b
commit 8062cdb485
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ class APCuSequence implements ISequence {
#[Override]
public function nextId(int $serverId, int $seconds, int $milliseconds): int|false {
if ((int)apcu_cache_info(true)['creation_time'] === $seconds) {
if ((int)apcu_cache_info(true)['start_time'] === $seconds) {
// APCu cache was just started
// It means a sequence was maybe deleted
return false;