Skip to content

Commit

Permalink
Update readme for the new cacheLifeTime parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
weakbit committed Jun 3, 2024
1 parent 4e49b91 commit b6c7cf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ location @sfc {
And now the fun part. You can replace any partial rendering with the ViewHelper ``s:renderInclude``.
That Partial will only be rendered once every 5 minutes for the complete Site (Site Configuration Site (not Page)).
The only differentiation will be done by **site config**, **language** and the provided **name**.
Optionally, you can add **cacheLifeTime** to define the lifetime of the partial in seconds.
If you include want to render the same partial with diffrent arguments it will still be the same content if you have the same name.

#### before:
Expand All @@ -84,7 +85,7 @@ If you include want to render the same partial with diffrent arguments it will s

<f:section name="Main">
<div class="something something">
<s:renderInclude name="mainMenu" partial="Menus/MainMenu" arguments="{_all}"/>
<s:renderInclude name="mainMenu" cacheLifeTime="900" partial="Menus/MainMenu" arguments="{_all}"/>
</div>
</f:section>
````
Expand Down

0 comments on commit b6c7cf8

Please sign in to comment.