I need to fetch data from doctype

Hello,

I am writing a custom script. In this script my calling doctype is “Item”, I need to get data from Brand doctype. When the Brand name is in cache everything works fine but when it is not in cache it does not work. Is there method to get data from server when it is not in cache.
Thanks you very much.