sohamakl So no chance to stop caching and put in the actual users name?
There is always a chance!
Go to your /dokuwiki/lib/plugins/dw2pdf/action.php
and look for the function load_template
https://codesearch.dokuwiki.org/xref/plugin/dw2pdf/action.php#595:
In the function head paste the following line of code:
global $INFO;
That is where the info of the user name is pulled from. Now, scroll down a bit to where it says // prepare replacements
. Add the following line of code to the $replace
array somewhere in the middle (to avoid a comma mistake):
'@USERNAME@' => $INFO['userinfo']['name'],
Now, you can use the new replacement pattern in your dw2pdf print templates for footers and headers in /dokuwiki/lib/plugins/dw2pdf/tpl/default
. Just edit them, accordingly and put @username@ where you like.
Cheers!