clear permissions cache when scanning a file
Do not recheck $cacheData. Move if($reuseExisting) under if($cacheData).
Merge pull request #4917 from owncloud/scan-clear-permissions

clear permissions cache when scanning a file