This Omeka S module adds a page block layout that displays random items. The number of items is configurable.
Getting a random list of items can take a significant amount of time on large databases. To avoid slowing down the page too much, the list of items is put into a cache for 60 minutes, so the list of items will change at most once per hour.
The cache used is APC User Cache. If you encounter performance issues, make sure it is enabled.
If you do not want to use the cache you can disable APC User Cache. Alternatively you can use the view helper directly in your theme:
echo $this->getRandomItems($count = 3, $useCache = false);
- To avoid checking user permissions, only public items are displayed, even if the logged in user is a Global Administrator