There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-472182ef-4d7b-4e19-aa56-ae4f14632ee8 XWIKI-8456 Open

Code macro should cache syntax highlighting result to improve rendering performance

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-2dfad13e-386c-4b42-8f72-aa0892e447e2 Thomas Mortagne on 21/Mar/25 16:01
 

XWIKI-23011 adds caching for a given XDOM, so it's cached if the XDOM in which the code macro call is located is cached (for example a document content).

Keeping this issue open for now until we decide if it's good enough or not. Going through the preparation system is the safest and the cleanest, but it also means that it depends a lot on the location of the code macro (i.e. is that location is itself cached).

 
cid:jira-generated-image-avatar-2dfad13e-386c-4b42-8f72-aa0892e447e2 Thomas Mortagne on 21/Mar/25 16:02
 
XWIKI-23011 adds caching for a given XDOM, so it's cached if the XDOM in which the code macro call is located is cached (for example a document content).

Keeping this issue open for now until we decide if it's good enough or not. Going through the preparation system is the safest and the cleanest, but it also means that it depends a lot on the location of the code macro (i.e. is that location is itself cached
, and prepared in case the code macro call is inside another macro content ).