From fbd822bc206bf959eafa23747671a9f487ae2bb8 Mon Sep 17 00:00:00 2001 From: Daniel Khan Date: Sat, 4 Dec 2021 18:06:43 +0100 Subject: [PATCH] Fixes levels within "Miscellaneous" --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 390cc5f4..870693df 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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.