---
title: "Clear the page cache"
method: POST
path: "/wp-json/ocf/v1/cache/clear"
tags: ["Site Editing — OCF"]
---

# Clear the page cache

`POST /wp-json/ocf/v1/cache/clear`

## Request

- Base URL: `https://your-site.com`
- URL: `https://your-site.com/wp-json/ocf/v1/cache/clear`
- Auth: HTTP basic

Clears page and object caches. OCF state writes already clear cache automatically; use this after workflows that also modify native WordPress records or media.

## Request body

- object
  - `reason` string

## Response `200`

Cache cleared

- object
  - `ok` boolean
  - `cleared` boolean

## Other responses

- `401`: Invalid WordPress username or application password

---

[API](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api.md) · [All operations](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/revisions/e842c9b4e4ec?raw)
