---
title: usesPageCache
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpreferences/usespagecache
---

# usesPageCache

A Boolean that indicates whether the web views associated with the receiver should use the shared page cache.

## Declaration

```swift
var usesPageCache: Bool { get set }
```

## Discussion

Discussion true if the web views should use a page cache; otherwise, false. Pages are cached when they are added to a back-forward list, and removed from the cache when they are removed from a back-forward list. Because the page cache is global, caching a page in one back-forward list may cause a page in another back-forward list to be removed from the cache.

## See Also

### Caching

- [cacheModel](webkit/webpreferences/cachemodel.md)
