You are definitely a developer Jean-Michel.
Don't feel bad about that caching mistake. I made exactly the same mistake with STACK. It would be worth adding a warning to the docs. The correct way to un-cache a question when your code alters it is to call question_bank::notify_question_edited($questionid)