Samba mount is super slow, files not synced. Is nextcloud reading files from sql database instead of directly for smb mounts?
If I set “check for changes” → “once on direct access” nextcloud will work super slow.
Why nextcloud doesn’t read directories directly and use sql only for searches etc…?
You’re right. It had something to do with php. I installed php-smbclient, then commented out ;extension=smbclient.so in php.ini
Then I changed crontab:
*/5 * * * * php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1
I added --define apc.enable_cli=1 to crontab because even though crontab was running, nextcloud said it wasn’t updated. So for folders size it was saying “Pending”. Now it updated the folders and it works fast again.
However I still think that nextcloud should read contents directly from samba and then update sql database in the background. I don’t know what was doing before…