Enable cache in Joomla
refresh http://joomla4/index.php/random-image page (from default content)
The image should still be random - even though the cache is enabled
Same image loads each page load
Labels |
Added:
?
|
Welcome to hell...
Category | ⇒ | com_cache com_modules |
Status | New | ⇒ | Discussion |
Title |
|
Title |
|
Title |
|
It is a random but in a bigger time span
Title |
|
Title |
|
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
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.
Labels |
Added:
J3 Issue
|
For what it is it's random enough.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-07-24 16:02:21 |
Closed_By | ⇒ | mbabker |
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.