Skip to content

Commit

Permalink
Merge pull request #32 from wrapperup/docs-cache
Browse files Browse the repository at this point in the history
Document clearing cache
  • Loading branch information
oscarotero authored Feb 20, 2024
2 parents 25c7543 + 4e03891 commit 2889a8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ const result = await env.runString("<h1>{{ title }}</h1>", {
console.log(result.content);
// <h1>Hello, world!</h1>
```

### Clearing cache

Vento implements a cache to prevent excessive compilation. If you need to
reload your templates at runtime (ie. for development), you can clear the cache.

```js
env.cache.clear();
```

0 comments on commit 2889a8a

Please sign in to comment.