> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/features/admin-ui.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# Admin UI

PorterWP adds **Settings > PorterWP** for administrators with the `manage_options` capability.

## Clear PorterWP Cache

The page currently contains one operation: **Clear PorterWP Cache**. It submits a nonce-protected POST request through `admin-post.php` using the `porterwp_clear_cache` action.

The operation deletes Porter's stored discovery/style/signature options:

* `porter_core_block_styles` and `porter_core_block_styles_version`
* `porter_blocks` and `porter_blocks_version`
* `porter_block_styles` and `porter_block_styles_version`
* `porter_inc_files`, `porter_inc_directories` and `porter_inc_files_version`
* `porter_rewrite_config_signature`

It also deletes legacy named settings-cache entries and increments `porter_cache_generation`. The generation number invalidates newer signature-derived configuration cache keys, which cannot be enumerated reliably when a persistent object cache is in use.

After completion, PorterWP safely redirects back to the settings page and displays a success notice. Users without `manage_options` and requests with an invalid nonce receive a 403 response.

Clearing the cache does not delete content, terms, ACF data or theme configuration. PorterWP rebuilds required entries from the active theme on later requests.

The page does not currently expose version information or a public action for injecting additional tabs. Use a separate WordPress admin page for project-specific controls.

Implementation: `includes/admin/porter-admin-page.php`.
