New Albums not seen in Random Block List

wls460

Joined: 2004-09-03
Posts: 8
Posted: Fri, 2004-11-05 04:34

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?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2004-11-05 04:43

moved to Random forum

 
oregano

Joined: 2003-04-21
Posts: 11
Posted: Wed, 2004-11-10 20:20

Same here - I've been having the same trouble!

Help? :)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-11-10 20:27
Quote:
pick the album for it to use

???

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.

 
wls460

Joined: 2004-09-03
Posts: 8
Posted: Thu, 2004-11-11 00:44

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?

 
oregano

Joined: 2003-04-21
Posts: 11
Posted: Thu, 2005-01-13 04:21

Bump! Anyone know a fix for this?

:)

 
wls460

Joined: 2004-09-03
Posts: 8
Posted: Thu, 2005-01-13 12:04

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.

 
oregano

Joined: 2003-04-21
Posts: 11
Posted: Sat, 2005-01-15 16:45

Perfect!!

Thanks so much - this is a great workaround.

:)