You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to a faster server we did run into a strange issue that did cost us quite some time to find the reason.
On the old server renderUML always has been slow enough so that onPageContentSave (which seems to run in parallel) completed before renderUML created the image file. On the new server renderUML completes very fast, so that onPageContentSave finds the freshly created image file and deletes it. The result is that the UML diagram won't show up in the wiki article.
For now we managed to solve this by calling the cleanup function from within renderUML (before writing the new file obviously) and call the cleanup function from onPageContentSave only if the page content does not include any <uml> tag.
This does not seem like a proper fix, so maybe you want to provide a better solution.
We are using Mediawiki 1.34.0 by the way.
The text was updated successfully, but these errors were encountered:
TimoKunze
changed the title
onPageContentSave deletes the file generated by renderUML
onPageContentSave deletes the file freshly generated by renderUML
Jan 24, 2020
After upgrading to a faster server we did run into a strange issue that did cost us quite some time to find the reason.
On the old server renderUML always has been slow enough so that onPageContentSave (which seems to run in parallel) completed before renderUML created the image file. On the new server renderUML completes very fast, so that onPageContentSave finds the freshly created image file and deletes it. The result is that the UML diagram won't show up in the wiki article.
For now we managed to solve this by calling the cleanup function from within renderUML (before writing the new file obviously) and call the cleanup function from onPageContentSave only if the page content does not include any
<uml>
tag.This does not seem like a proper fix, so maybe you want to provide a better solution.
We are using Mediawiki 1.34.0 by the way.
The text was updated successfully, but these errors were encountered: