I use the random block to display pictures from the most recent album. Every time I start a new album I must go into the block configuration and pick the album for it to use.
The problem is that new album names are not showing up on the list. I tried deactivating and activating the block, deleting and creating a new block but it still does not see new albums. Permissions are set so everybody can see the album.
Any idea what I can do to correct this?
Posts: 27300
moved to Random forum
Posts: 11
Same here - I've been having the same trouble!
Help?
Posts: 2322
???
If you're using the block-random.php that's provided by Gallery in 1.4.4, there is a cache that needs to be updated after new albums are added. You can configure the amount of time that Gallery waits before automatically refreshing the cache, but the default is 24 hours.
Posts: 8
It has been six days and the new album is still not a choice to pick from. Can you expand on the cache thing a bit more, like how do I clear it myself?
Posts: 11
Bump! Anyone know a fix for this?
Posts: 8
I figured it out about a month ago and forgot all about this post.
Go to /albums/block-random.cache
In that file is a list of all of your albums with the number of items in the album. It looks like youralbumname/# where #=the number of items in that album.
At the end of the list enter the name of your new album and the number of items in that album. (i.e.: newalbumname/5)
Works like a charm although it still seems the round-a-bout way to fix it.
Posts: 11
Perfect!!
Thanks so much - this is a great workaround.