Poll Incoming Federated Shares For Updates
This command must be used if received federated shares are being referenced by desktop clients but not regularly accessed via the webUI. This is because, for performance reasons, federated shares do not update automatically. Instead, federated share directories are only updated when users browse them using the webUI.
ownCloud and system administrators can use the
incoming-shares:poll command to poll federated shares for updates.
|The command polls all received federated shares, so does not require a path.|
sudo -u www-data php occ incoming-shares:poll
When using federation, it is recommended to execute
Executing the command once every 12 hours should be safe enough for most instances. However, the interval can be reduced to once every 2 hours, for instances with a small number of federated shares.
Depending on the desired resource consumption, this value should be lowered or increased based on individual expectations. To find a value that fits a specific setup, it is recommended to execute the command once, measure the execution time and set the interval, so that the background job can finish before the next execution is triggered.