> 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/documentation/caching.md).

# Caching

PorterWP only caches when `wp_get_environment_type() === 'production'`.

| Data cached        | Option name           | Expiry                |
| ------------------ | --------------------- | --------------------- |
| Scanned block list | `porter_blocks`       | Until version changes |
| Block styles array | `porter_block_styles` | –                     |
| Included PHP files | `porter_inc_files`    | –                     |

### Clearing the cache

1. **WP Admin → Settings → PorterWP → Clear Cache**
2. Bump the `version` key in any `porter/config/*.json`.
3. `wp option delete porter_*` via CLI.

See the [Environment Awareness](https://github.com/whoisandywhite/porterwp-gitbook/blob/main/Environment-and-cache.md) doc for in‑depth details.
