Disable the Asynchronous Rendering of the Caching Code Macro
Last modified by Vincent Massol on 2026/11/12 16:51
Steps
Make the Caching Code Macro highlight the code while the page is rendered, instead of in the background. The result is still cached.
- Add the following line to the WEB-INF/xwiki.properties file of your XWiki installation:
codecached.async = false - Restart XWiki.
- Open a page holding a code macro that was never displayed before. The highlighted code is shown with the page, without a delay.

FAQ
How do I go back to the asynchronous rendering?
Remove the line, or set it to true, the default, and restart XWiki.