|
10 | 10 | </referenceContainer> |
11 | 11 |
|
12 | 12 | <referenceContainer name="before.body.end"> |
13 | | - <container name="loki.script"> |
14 | | - <block name="loki.alpinejs" template="Loki_Base::script/alpine-csp.phtml"/> |
15 | | - |
16 | | - <block name="loki.script.variables" template="Loki_Base::script/variables.phtml"> |
| 13 | + <container name="loki.dynamic-script"> |
| 14 | + <block name="loki.dynamic-script.variables" template="Loki_Base::script/variables.phtml"> |
17 | 15 | <arguments> |
18 | 16 | <argument name="form_key_value" xsi:type="object">Loki\Base\ViewModel\FormKeyValue</argument> |
19 | 17 | </arguments> |
20 | 18 | </block> |
| 19 | + </container> |
| 20 | + |
| 21 | + <block name="loki.script" template="Loki_Base::script/script-container.phtml"> |
| 22 | + <arguments> |
| 23 | + <argument name="cache_lifetime" xsi:type="number">86400</argument> |
| 24 | + </arguments> |
| 25 | + |
| 26 | + <block name="loki.alpinejs" template="Loki_Base::script/alpine-csp.phtml"/> |
21 | 27 |
|
22 | 28 | <block name="loki.script.cookies" template="Loki_Base::script/cookies.phtml"> |
23 | 29 | <arguments> |
24 | 30 | <argument name="cookie_config" xsi:type="object">Loki\Base\ViewModel\CookieConfig</argument> |
25 | 31 | </arguments> |
26 | 32 | </block> |
27 | | - </container> |
| 33 | + </block> |
28 | 34 |
|
29 | 35 | <block name="loki.script.store" template="Loki_Base::script/script-container.phtml"> |
30 | 36 | <arguments> |
|
41 | 47 | </block> |
42 | 48 |
|
43 | 49 | <block name="loki.script.directive" template="Loki_Base::script/script-container.phtml"> |
| 50 | + <arguments> |
| 51 | + <argument name="cache_lifetime" xsi:type="number">86400</argument> |
| 52 | + </arguments> |
| 53 | + |
44 | 54 | <block name="loki.script.directive.autoremove" template="Loki_Base::script/directive/autoremove-directive.phtml"/> |
45 | 55 | </block> |
46 | 56 |
|
47 | 57 | <block name="loki.script.component-partial" template="Loki_Base::script/script-container.phtml"> |
| 58 | + <arguments> |
| 59 | + <argument name="cache_lifetime" xsi:type="number">86400</argument> |
| 60 | + </arguments> |
48 | 61 | </block> |
49 | 62 |
|
50 | 63 | <block name="loki.script.component-type" template="Loki_Base::script/script-container.phtml"> |
| 64 | + <arguments> |
| 65 | + <argument name="cache_lifetime" xsi:type="number">86400</argument> |
| 66 | + </arguments> |
51 | 67 | </block> |
52 | 68 |
|
53 | 69 | <block name="loki.script.component" template="Loki_Base::script/script-container.phtml"> |
| 70 | + <arguments> |
| 71 | + <argument name="cache_lifetime" xsi:type="number">86400</argument> |
| 72 | + </arguments> |
| 73 | + |
54 | 74 | <block name="loki.component.messages" template="Loki_Base::script/component/message-component.phtml"/> |
55 | 75 | </block> |
56 | 76 | </referenceContainer> |
|
0 commit comments