You could also add
'filesystem_check_changes' => 1,
to your config.php as described here
‘filesystem_check_changes’ => 0,
Specifies how often the local filesystem (the Nextcloud data/ directory, and NFS mounts in data/) is checked for changes made outside Nextcloud. This does not apply to external storages.
0 → Never check the filesystem for outside changes, provides a performance increase when it’s certain that no changes are made directly to the filesystem
1 → Check each file or folder at most once per request, recommended for general use if outside changes might happen.