[CONTEDIT-188] Allow dynamic/snippet caching of blocks Created: 30/May/18 Updated: 16/Jun/21 Resolved: 16/Jun/21 |
|
| Status: | Closed |
| Project: | Content Editor |
| Component/s: | None |
| Affects Version/s: | 1.1.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Christian Ringele | Assignee: | Unassigned |
| Resolution: | Outdated | Votes: | 0 |
| Labels: | support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||
| Date of First Response: | |||||
| Description |
|
Rendered blocks are not supporting DynamicFragment caching. The reason is, that the mgnl:block node that gets rendered over the directive [@cms.block content=block /] is not a component. Or better said because it has not its own renderable URL. As it has its own render cycle it would be applicable to make it DynamicFragment-cacheable. |
| Comments |
| Comment by Mariusz Chruscielewski [ 30/May/18 ] |
|
As our customer required that feature, I made a Servlet, that I can point from "targetPath" of fragment, and pass UUID of block to be rendered. Then servlet resolves UUID into contentMap and passes that to freemarker template. Template does only one thing: [@cms.block content=block /] Dynamic rendering works perfectly. The only thing is that I can't set this from yaml, but I do it from ftl. |