Forums / Setup & design / No caching of random image

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

No caching of random image

Author Message

Anders F

Tuesday 27 January 2004 3:11:03 pm

When caching is enabled (default settings) my randomised image isn't randomised anymore. I guess that's normal behaviour. Is there somehow I can override caching for a specific content or a template?

I tried {set-block name=random scope=root variable=cache_ttl}0{/set-block} at the top of the template, with no luck.

James Packham

Wednesday 28 January 2004 3:00:15 am

I believe you have to write an extension to 'shuffle' your images, look under community contributions someone may have left something there.

Regards,

~James~

Anders F

Wednesday 28 January 2004 4:26:27 am

Thanks for the reply, and thanks for the tip.

But, the random function (and it is in fact the shuffle contribution ;) ) works perfectly when caching is turned off.