cached code? modified code is not used

Hi! I have a weird situation and i’m not sure if this should be reported as a bug:
I installed with galaxy a collection which i modified quite a lot. (a collection that add some facts). The really weird thing is that somehow the old version of the code is used
and i still have the old output.
Does anyone have any idea about this?
Thank you!
Adrian

No code is cached between Ansible runs, but you CAN have 2 instances
of the same collection installed, but only the first one loaded will
be used, I suspect this is your issue.

I found the problem: this was about a facts plugin that i was working on,
and i had redis-based persistent cache and high enough ttl.
So, when running the facts gathering play, the code actually was not working,
and ansible would just report back the cached facts giving me the wrong impression.

so, with --flush-cache i solved the problem and i can be certain that fresh facts are
gathered each time.

Thank you!
Adrian