feat: improved caching of api-backed content

This commit is contained in:
2026-08-20 12:11:58 +02:00
parent 87e6857bff
commit baf7b5d94a
7 changed files with 294 additions and 63 deletions
@@ -358,8 +358,13 @@
</f:section>
<f:section name="PriceTable">
<f:comment><!--
This section renders once per year, so "load" would fire two requests on first
paint that compete with the price calendar for PHP workers. The tables sit below
the fold, so fetch them when they actually come into view.
--></f:comment>
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: year}', format: 'html')}"
hx-trigger="load">
hx-trigger="revealed">
<f:render section="TableLoadingIndicator"/>
</div>
</f:section>