I’ve created my own ViewHelper that returns a random value of an array. Unfortunately the value doesn’t change after several reloads. It only changes after some minutes or when I clear the Flow cache. I’ve already asked Google, but didn’t find anything. Does anyone know how I disable the caching of ViewHelper results?
Without knowing more about your use case it’s a bit hard to give well-grounded advice but two considerations:
Why not use Fusion to generate the random value
Instead of disabling the content cache, chaning its lifetime to a couple of minutes/hours might be enough in your case. See [SOLVED] Fluid Random Image for an example
Because I have an own node type Jumbotron and there’s an attribute (start) where the user can enter a comma separated list of values (e.g. ‘5,10,17,21,29’). And when You enter the page, randomly a value should be picked from this string. I don’t know how to archive this with Fusion.