mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 12:24:47 -04:00
parent
19e5bbe0cb
commit
4dd779057c
@ -19,7 +19,12 @@ deprecated: false
|
|||||||
aliases: []
|
aliases: []
|
||||||
---
|
---
|
||||||
|
|
||||||
The `partialCached` template function can offer significant performance gains for complex templates that don't need to be re-rendered on every invocation. Here is the simplest usage:
|
The `partialCached` template function can offer significant performance gains for complex templates that don't need to be re-rendered on every invocation.
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Each Site (or language) has its own `partialCached` cache, so each site will execute a partial once.
|
||||||
|
|
||||||
|
Here is the simplest usage:
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ partialCached "footer.html" . }}
|
{{ partialCached "footer.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user