https://discord.umbraco.com logo
#hacktoberfest
Title
# hacktoberfest
w

warrenbuckley

10/06/2021, 8:34 AM
As I am playing around with TagHelpers for Hacktoberfest. I would any input from you wonderful people in the community to collab together on what makes sense to ship in the CMS 🙂 https://github.com/umbraco/Umbraco-CMS/pull/11233 Question: Microsoft ships a taghelper for partial rendering
<partial name="MyPartial" />
and in Umbraco we have
@Html.CachedPartialAsync()
Does it make sense to have a new taghelper
<cachedpartial name-"MyPartial" timeout="20" />
as it can be achieved with the built in cache taghelper from Microsoft.
Copy code
<cache expires-after="TimeSpan.FromSeconds(10)">
    <p>Current Time Inside Cache Tag Helper: @DateTime.Now</p>
    <partial name="MyPartial"/>
</cache>
Thoughts ??
2 Views