Clearing script cache?

Yesterday I experienced a very weird problem and couldn’t make sense of
it.

I was working on script/myscript when I started a different shell
and noticed that the changes I was making weren’t taking effect?

I verified the paths (so I am not editing wrong files)
I cleared the /tmp/ruby.* session files
I restarted the Apache server ( even though I was working via shell).

Finally I closed the files and today all my changes aren’t in the
file?

Is there some other way to control the script cache (if any)?

I am using SVN and the only developer working on this app.

Any pointers are appreciated

Thanks
Frank