1) As I recall you can check inside the view whether the functions is being rendered inside the Visual Editor / in the C1 console or if it's being rendered to a web user. Is that possible? How?See http://docs.composite.net/Functions/Composite-C1-API/Rendering-Reason
2) After changing the output of the function the Visual Editor still prints the old data even though it prints correctly when I load it as a user on the webpage. Seems like a caching-problem. How can I solve this?We do cache these images. A quick way to flush this cache should be to touch a css/less file.