invalidate cache when object has been moved or copied fixes #2

If the current path is different from the cache id, the cache should be invalidated.