---
title: resetPIRCache()
framework: networkextension
role: symbol
role_heading: Instance Method
path: networkextension/neurlfiltermanager/resetpircache()
---

# resetPIRCache()

Resets the PIR on-device cache.

## Declaration

```swift
func resetPIRCache() async throws
```

## Discussion

Discussion The PIR system on device caches previous PIR queries and responses to minimize exchanges with the PIR server. When there is a dataset change on the PIR server, perform a reset of the on-device cache to avoid using stale cache entries.

## See Also

### Working with a Private Information Retrieval server

- [pirServerURL](networkextension/neurlfiltermanager/pirserverurl.md)
- [pirPrivacyPassIssuerURL](networkextension/neurlfiltermanager/pirprivacypassissuerurl.md)
- [pirAuthenticationToken](networkextension/neurlfiltermanager/pirauthenticationtoken.md)
- [refreshPIRParameters()](networkextension/neurlfiltermanager/refreshpirparameters().md)
