# PgCacheOptions.invalidationTimeout property · @imqueue/pg-cache

Source: https://imqueue.org/api/pg-cache/latest/pg-cache.pgcacheoptions.invalidationtimeout/
Published: 2026-08-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-cache 5.1.4 — generated reference, not hand-written

How long `start()` waits for the change-notify triggers and the channel subscriptions to be confirmed, in milliseconds. Defaults to [DEFAULT\_INVALIDATION\_TIMEOUT](https://imqueue.org/api/pg-cache/latest/pg-cache.default_invalidation_timeout/); a non-positive value falls back to the same.

**Signature:**

```typescript
invalidationTimeout?: number;
```

## Remarks

On expiry `start()` resolves with a warning rather than hanging: a database that accepts a connection but never confirms the subscription is a broken deployment, and a service that cannot invalidate is still a service that works. Whether it then caches is [PgCacheOptions.requireInvalidation](https://imqueue.org/api/pg-cache/latest/pg-cache.pgcacheoptions.requireinvalidation/).

