This wish was raised by Brunhilda today on the community forum at http://community.wikidot.com/forum/t-510185/comments/show#post-1482177. Currently if you are displaying an article or image on a page via the ListPages module with limit="1" and order="random" there is no way to set when the article or image changes. I assume it is controlled by a cache setting on the server. So this wish is to set the interval between changes. For example having an attribute like interval="86400" (the number of seconds in 24 hours) would allow site admins to set when an item changes.
Can interval be in hours, days and months? It's too many seconds…
If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney
any update on this ?
Cached ListPages is kept in Memcache and it's not permanently stored. So even if we implement something like this we can only ensure that the "interval" wont be longer than its set. It can be shorter.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
Interesting. That would be helpful. I think the 60 second delay could lead to confusion when users are expecting something random or unique, but it's still showing the old cache. Does a shorter interval impact the server load significantly?
It depends on site load and ListPages complexity. If our priority is more random "random" we can add (5..10) variants of list pages random cache like:
list_pages_random_1 (60s cache)
list_pages_random_2 (60s cache)
…
list_pages_random_n (60s cache)
Where "n" is totally random per page refresh. Each "list_pages_random_n" would expires after 60s and new wan would be generated in his place.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
That sounds like a good plan to provide what appears to be a true random functionality.