Caching Code Macro
Last modified by Admin on 2026/02/26 15:33
| Cached Code macro for improved performances |
| Type | JAR |
| Category | Macro |
| Developed by | |
| Active Installs | 0 |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
| Compatibility | XWiki 11.10+ |
Table of contents
Description
This macro overrides the Code Macro and adds caching and asychronicity.
Usage
Exactly the same as the Code Macro, with the same macro name.
Configuration
It's possible to disable the asynchronicity by adding the following to xwiki.properties:
codecached.async = falsePrerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).
You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.
Versions
Dependencies
Dependencies for this extension (org.xwiki.contrib:macro-code-cached 1.0.1):
- org.xwiki.platform:xwiki-platform-rendering-macro-code 11.10
- org.xwiki.platform:xwiki-platform-rendering-async-default 11.10