What happens w/ compiled Lotuscript?

I understand that LS gets compiled at some point.

I’ve recently encountered a situation where an agent wasn’t being executed in a browser app. Deleting & recreating the agent didn’t fix things so I had to copy the agent and give it a new name. I’m guessing the compiled code wasn’t being discarded.

My question is: should making a copy of the database clear out all the compiled LS? What are all the conditions where the compiled code be cleared?

I want to get back to the orignal names to tidy things up.

Subject: Recompile Lotuscript

Particularly after editing script libraries, choose Recompile All LotusScript from the Domino Designer Tools menu.

Subject: RE: Recompile Lotuscript

I often get “Error loading Module” errors after modifying libraries. Usually doing the “Recomile All Lotusscript” from the designer as Lawrence suggests fixes the problem.