J3 Issue ?
avatar PhilETaylor
PhilETaylor
3 May 2017

Steps to reproduce the issue

Enable cache in Joomla
refresh http://joomla4/index.php/random-image page (from default content)

Expected result

The image should still be random - even though the cache is enabled

Actual result

Same image loads each page load

avatar PhilETaylor PhilETaylor - open - 3 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 May 2017
avatar mbabker
mbabker - comment - 3 May 2017

This would require hardcoding the module to not allow caching. Cache and the intent of this module are kind of at odds with one another here.

avatar PhilETaylor
PhilETaylor - comment - 3 May 2017

Welcome to hell...

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Category com_cache com_modules
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Status New Discussion
avatar mbabker mbabker - edited - 3 May 2017
avatar mbabker mbabker - change - 3 May 2017
Title
[4.0] Random Image Module not random when cache on
Random Image Module not random when cache on
avatar mbabker mbabker - edited - 3 May 2017
avatar PhilETaylor PhilETaylor - change - 3 May 2017
Title
[4.0] Random Image Module not random when cache on
Random Image Module not random when cache on
avatar PhilETaylor PhilETaylor - edited - 3 May 2017
avatar PhilETaylor PhilETaylor - change - 3 May 2017
Title
Random Image Module not random when cache on
[4.0] Random Image Module not random when cache on
avatar Fedik
Fedik - comment - 3 May 2017

It is a random but in a bigger time span :neckbeard:

avatar PhilETaylor PhilETaylor - change - 3 May 2017
Title
Random Image Module not random when cache on
[4.0] Random Image Module not random when cache on
avatar PhilETaylor PhilETaylor - edited - 3 May 2017
avatar PhilETaylor PhilETaylor - change - 3 May 2017
Title
[4.0] Random Image Module not random when cache on
Random Image Module not random when cache on
avatar brianteeman
brianteeman - comment - 19 May 2017

When you say enable cache - do you mean the cache option in the global config or the system cache

The random image module by default is set to no caching

iirc that means it wont be cached with conservative or progressive cache but would still be cached with the system page cache - an option which really is not suitable for any type of dynamic site

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Jun 2017

Disabling the cache option in module doesn't means it works in page cache or even in webserver/proxy/CDN cache scenarios.

IMHO this type of random behaviour should always be done in client side, ie, javascript, not server side exactly because of server cache issues.

Moving to a js random could solve this issue.

avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar mbabker
mbabker - comment - 24 Jul 2018

For what it is it's random enough.

avatar mbabker mbabker - close - 24 Jul 2018
avatar mbabker mbabker - change - 24 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-24 16:02:21
Closed_By mbabker

Add a Comment

Login with GitHub to post a comment