[prev in list] [next in list] [prev in thread] [next in thread]
List: trac
Subject: [Trac] Re: Disabling cache in the PlantUml plugin?
From: RjOllos <rjollos () gmail ! com>
Date: 2021-08-19 17:53:34
Message-ID: 5c696399-907b-4734-8363-7bd8ad14e151n () googlegroups ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Thursday, August 19, 2021 at 3:18:52 AM UTC-7 Tom wrote:
> Hi
>
> I don't know if I should go straight ahead an open an enhancement ticket
> for the following.
> I did have a look at the source code already, and as far as I can tell the
> functionality is not already there in the plugin in question.
> But I may be wrong, so I thought I'd better check here first.
>
> We're making good use of the
> https://trac-hacks.org/wiki/PlantUmlMacro
> in our Trac (1.2.6) environment.
>
> The plugin is making use of a cache for the generated diagrams.
> This however does not work too well when actually one wants certain
> diagrams to always be regenerated on request.
>
> E.g. a Gantt diagram is written to indicate "today"'s date. Using the
> cache, this date is always the date of the cached version.
> I assume there may be other such dynamic elements in other types of
> PlantUML diagrams.
>
> Also we wanted to use the macro to show diagrams located in source
> repositories.
> Again, if we commit new versions into the source repository, Trac still
> just shows the cached version.
>
> As mentioned I had a look at the source, my Python and Trac development
> skills are at a minimum unfortunately.
> It seems that there is no (easy) way to disable the caching mechanism
> right?
>
> Thanks for any feedback on this, let me know if I should simply open an
> enhancement ticket.
>
> And in general thanks to all of you participating in maintaining and
> developing Trac.
>
> Best regards
> Tom
>
We could add an argument to the macro to disable the cache for one
particular diagram. Please feel free to open an issue.
Ryan
--
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To view this discussion on the \
web visit https://groups.google.com/d/msgid/trac-users/5c696399-907b-4734-8363-7bd8ad14e151n%40googlegroups.com.
[Attachment #5 (text/html)]
<br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, \
August 19, 2021 at 3:18:52 AM UTC-7 Tom wrote:<br></div><blockquote \
class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, \
204); padding-left: 1ex;"><div>Hi</div><div><br></div><div>I don't know if I should \
go straight ahead an open an enhancement ticket for the following.</div><div>I did \
have a look at the source code already, and as far as I can tell the functionality is \
not already there in the plugin in question. <br></div><div>But I may be wrong, so I \
thought I'd better check here first.<br></div><div><br></div><div>We're making good \
use of the <br></div><div><a href="https://trac-hacks.org/wiki/PlantUmlMacro" \
target="_blank" rel="nofollow" \
data-saferedirecturl="https://www.google.com/url?hl=en&q=https://trac-hacks.org/wi \
ki/PlantUmlMacro&source=gmail&ust=1629475562227000&usg=AFQjCNHtGKzvsOCx-hm2HwTDcRJ9efgutw">https://trac-hacks.org/wiki/PlantUmlMacro</a></div><div>in \
our Trac (1.2.6) environment.</div><div><br></div><div>The plugin is making use of a \
cache for the generated diagrams.</div><div>This however does not work too well when \
actually one wants certain diagrams to always be regenerated on \
request.</div><div><br></div><div>E.g. a Gantt diagram is written to indicate \
"today"'s date. Using the cache, this date is always the date of the cached \
version.</div><div></div><div>I assume there may be other such dynamic elements in \
other types of PlantUML diagrams.</div><div><br></div><div>Also we wanted to use the \
macro to show diagrams located in source repositories.</div><div>Again, if we commit \
new versions into the source repository, Trac still just shows the cached \
version.</div><div><br></div><div>As mentioned I had a look at the source, my Python \
and Trac development skills are at a minimum unfortunately.</div><div>It seems that \
there is no (easy) way to disable the caching mechanism \
right?</div><div><br></div><div>Thanks for any feedback on this, let me know if I \
should simply open an enhancement ticket.</div><div><br></div><div>And in general \
thanks to all of you participating in maintaining and developing \
Trac.</div><div><br></div><div>Best \
regards</div><div>Tom</div></blockquote><div><br></div><div>We could add an argument \
to the macro to disable the cache for one particular diagram. Please feel free to \
open an issue. </div><div><br></div><div>Ryan</div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "Trac \
Users" group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/5c696399-907b-4734-8363-7bd8ad14e15 \
1n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/ \
msgid/trac-users/5c696399-907b-4734-8363-7bd8ad14e151n%40googlegroups.com</a>.<br />
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic