Control Edge Cache for Headless WordPress
npm install @wpengine/edge-cachesh
$ npm install --save @wpengine/edge-cache
`Usage
The following code purges paths from the edge cache:
`javascript
import { purgePaths } from '@wpengine/edge-cache';try {
const paths = ['/foo', '/bar']
await purgePaths(paths)
} catch (error) {
console.error(error)
}
`API
$3
`ts
purgePaths(paths: []string): Promise
`#### Options
paths: The paths that should be purged from the edge cache$3
`ts
purgeTags(tags: []string): Promise
`#### Options
tags`: The tags that should be used to purge content from the edge cacheTo report security vulnerabilities please see https://wpengine.com/security/.
Bugs can be reported using the live chat in the User Portal
MIT License © WP Engine