Make the Refresh File Tree command clear caches

This ensures a full refresh.

As suggested in #7929.