Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ app.get("/data", (request, reply) => {
```
-->

### Miscellaneous
## Miscellaneous

## Using point-of-view as a dependency in a fastify-plugin
### Using point-of-view as a dependency in a fastify-plugin

To require `point-of-view` as a dependency to a [fastify-plugin](https://github.com/fastify/fastify-plugin), add the name `point-of-view` to the dependencies array in the [plugin's opts](https://github.com/fastify/fastify-plugin#dependencies).

Expand All @@ -428,7 +428,7 @@ fastify.register(myViewRendererPlugin, {
});
```

## Forcing a cache-flush
### Forcing a cache-flush

To forcefully clear cache when in production mode, call the `view.clearCache()` function.

Expand Down