Skip to content

&sort=rand Random first time only #258

@moniarde

Description

@moniarde

I have a really basic call to Gallery on one of my template chunks: [[!Gallery ? &album=4 &thumbTpl=galRandom &sort=rand &imageHeight=100px]]. All I want is one image from an album, but I want a different image on every page load. I am getting a random image once I make a change that alters the cache, but unless I alter the something (move an image in the gallery, add a parameter to the call, something small), the same image that was last called is displayed on every page and on every page refresh.

I've looked at all of the images at once - they are in a random order, but that order stays the same until I change something. I have my Gallery call uncached - is there something that is caching the output of the call to reuse it later?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions