# 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.
