Use path for hash in caching