I am attaching an image to a custom doc type programmatically and reloading the document. It still display the cached document and tried doc.reload() and frappe.ui.toolbar.clear_cache() they both get executed but it doesn’t seem to be clearing the cached image.
Any advise?