# Cache endpoints (Admin API)

> 1 FeatherPanel Admin API endpoint from admin/cache.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/cache/

Defined in [`backend/app/routes/admin/cache.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/cache.php). Authentication used here: **Admin**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### POST `/api/admin/dashboard/cache/clear`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-cache-clear`
- Controller: [`DashboardController::clearCache`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/DashboardController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/cache.php#L25)

**Clear system cache** Clears all cached data in the system, including redis and file-based cache.

| Response `data` field | Type | Description |
| --- | --- | --- |
| `success` | boolean |  |
| `message` | string |  |

```bash
curl -X POST "$PANEL_URL/api/admin/dashboard/cache/clear" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

Responses: `200` Cache cleared successfully · `401` Unauthorized · `403` Forbidden - Insufficient permissions · `500` Internal server error - Failed to clear cache
