Amazingly quick reaction!
Yes, I added the
gpg-agent.conf file to my GPG home and added the two lines
default-cache-ttl 0
max-cache-ttl 0That disabled caching (set the time passphrases are cached for to 0). Maybe only setting one of the two would work, I didn't try that out though, since they are usually mentioned together anyways.
Additionally, I played around with clearing the cache, but that seemed to only work when using the default GPG home (
~/.gnupg) and not when using a custom location.
Command for that is
echo RELOADAGENT | gpg-connect-agent