Caching issue: Snippet in &imageTpl

I put a snippet into the imageTpl in mgGetImages-snippet. It takes two custom fields and works well, except that I always have to clean the cache manually that a change become effective.

I would like to change a image from a moregallery depending on the time of the day. Created to custom fields (from-time and to-time). the snippet takes these inputs and compares to the current time and returns “true” or “false” (to show or not to show an image).

Tried to call all parts uncached, but it didn’t work. Still have to clean the cache manually.

The mgGetImages snippet has its own caching mechanism that is likely the problem here. You can disable that by adding &cache=`0` to the call, but that will likely slow down your gallery rather significantly…