fixes #2791 parent folder caches are not being flushed