---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / invalidateCacheWithBackend

# Function: invalidateCacheWithBackend()

> **invalidateCacheWithBackend**(`options`): `Promise`\<[`MrtCacheInvalidationResult`](../interfaces/MrtCacheInvalidationResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:2014](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L2014)

Triggers a CDN cache invalidation, routing to the SCAPI or legacy backend per
the given preference (with safe `auto` fallback). Both backends treat the
invalidation as fire-and-forget.

## Parameters

### options

[`InvalidateCacheBackendOptions`](../interfaces/InvalidateCacheBackendOptions.md)

## Returns

`Promise`\<[`MrtCacheInvalidationResult`](../interfaces/MrtCacheInvalidationResult.md)\>
