Link to Régis Full Partials series

This commit is contained in:
Frank Taillandier authored and Bjørn Erik Pedersen committed 2019-12-20 14:02:19 +01:00
1 parent 138782808d
commit 0dee16d11c
1 file changed
+3 -1
+3 -1
View File
@@ -21,7 +21,6 @@ aliases: []
The `partialCached` template function can offer significant performance gains for complex templates that don't need to be re-rendered on every invocation. 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. **Note:** Each Site (or language) has its own `partialCached` cache, so each site will execute a partial once.
Here is the simplest usage: Here is the simplest usage:
@@ -43,3 +42,6 @@ If you need to pass additional parameters to create unique variants, you can pas
``` ```
Note that the variant parameters are not made available to the underlying partial template. They are only use to create a unique cache key. Since Hugo `0.61.0` you can use any object as cache key(s), not just strings. Note that the variant parameters are not made available to the underlying partial template. They are only use to create a unique cache key. Since Hugo `0.61.0` you can use any object as cache key(s), not just strings.
> See also the [The Full Partial Series Part 1: Caching!](https://regisphilibert.com/blog/2019/12/hugo-partial-series-part-1-caching-with-partialcached/)