clear permissions cache when scanning a file

Conflicts:
	lib/files/cache/scanner.php