DocumentCollection & ViewEntryCollection on servers

DocumentCollection and ViewEntryCollection on servers

I have a problem documentcollection’s and ViewEntryCollection’s they work fine locally but not on a server where they are reported as empty. I know that they will work on a server given enough time for lotus notes to do its magic.

Can anyone tell me how to get the server to update whatever cache it is looking at.

Also can anyone tell me why lotus write document collections in this way. It would seem that the way to write such code is that if the collection comes back blank notes updates its cache and tries again.