var image; if (isCachingAllowed() && isCachingEnabled()) { var cache = cacheProvider.getCache() var key = hash(macro.source) if (!cache.contains(key)) { var renderedImage = render() cache.put(key, renderedImage) } image = cache.get(key) } else { image = render() } |
exportName
parameter already exists but not the corresponding source hash. store source hash as page property? History of the attachments is not always wanted. (OPTIONAL) How to configure/specify the cache as macro parameter?
{plantuml:cache=<empty>|none|attachment|fs|server|...)
<empty> → could be the default cache storage e.g. in memory cache