Hello people. I'm using sugar 5.0.0d. I have added a custom panel within the detail view of contacts and in that panel I have 3 custom fields where an external data is shown (inserted early using soap).

My problem is that when I navigate my contacts, always the first contact's data is shown.

I have found that the problem is in the sugar's cache, because when I clean the vardef cache all works fine.

How can i do to fix this? Is there any way to clean the vardef cache using code?

Thanks a lot.

Cheers