kylec32 / dokuwiki_plantumlparser

A plugin to have a user's browser display a SVG PlantUML diagram generated at http://plantuml.com/
MIT License
8 stars 12 forks source link

Cache Planttext results using dokuwiki caching capabilities #9

Closed Belphemur closed 6 years ago

Belphemur commented 6 years ago

Instead of displaying all the time the data directly from planttext use the handle method to gather the SVG code. The result of handle is cached internally by dokuwiki, this way the server gather the SVG code, and serve it.

This modification mean the server need to have access to internet, but reduce greatly the number of requests done on planttext service.

kylec32 commented 6 years ago

The merge ended up happening in a somewhat strange way. I appreciate your contribution. I just added a fallback method for if the server doesn't have access to the internet. Also added you as a Contibutor in the README.

Awesome stuff, thanks again!