Problems with timestamp and oc_filecache

if you connect same external storage for multiple users, oc_filecache records for each user will be created (at least it was reported earlier, not sure still the case).

occ files:scan does not remove invalid entries from oc_filecache table. May be you want run occ files:cleanup as well

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#file-operations