Hello everyone,
I’d like to create a new contrib extension called “Formula pre-caching listener”.
Currently, the formula macro has a mechanism to cache the results of a formula evaluation based on the contents of the macro. The cache works by storing the image produced by the macro in the XWiki temp directory, with a name based on a hash of the macro contents and parameters. Thus, if the macro gets reloaded, the rendered image of the macro is already available.
This is already a very useful option, as, while the first load of a page containing many formula macros will take some time, the second reload won’t take as much time as every formula is now in cache.
This extension aims to remove the need for a user to actually wait for the first load a page which contains a lot of formula macros. This is particularly useful in an environment where XWiki gets restarted frequently for different reasons (and thus looses its cache), or simply where the user does not want to wait a long time for the first load of a document.
I’ll create the GitHub repos + the JIRA project.
Thanks,
Clément