Configuration document not always updated by agent

I have an application written in Lotusscript that utilizes a configuration document.

I also have an agent that first clears the configuration document fields, executes some SQL code and puts the results in the fields.

When write the output of the query in question, the results show in the log and it contains the change I made to the code. When I look at the configuration document field, the field has the old results in it.

Question: Is the config document cached? How do you clear the cache? Is there a way to replace the values in the configuration document every time the agent runs, no matter how recently the agent was run?

Thanks for the help!

Subject: Do you mean profile document?

Are you talking abouta profile document, or a regular Notes document that you use to store configuration data in?

Can you post the relevant part of your code?