Cache: don't check if the parent exists in the cache if we are already sure it does
better variable naming
Merge pull request #4213 from owncloud/scanning-performance

Cache: don't check if the parent exists in the cache if we are already sure it does