I did setup a random quote block on the front page of my website, for the authenticated users the random quote gets updated correctly (a new random quote is being shown) every time the frontpage is being reloaded, but for anonymous users always the same quote is being shown, like if there is some caching or there is no random update at all :(
Is this a known issue/behaviour? or there is some tuning of drupal to avoid it?

Drupal 5.1, Quotes module 5.x.1.1, Windows XP with IE 6 and Firefox 2.

Comments

jhriggs’s picture

Status: Active » Closed (works as designed)

If you have page caching enabled in Drupal's settings, you have to look at the 'Update options' in the block's configuration. It will use cron to update the random quote displayed to anonymous users.

Dubber Dan’s picture

I'm experiencing the same. Went in to look at the update options for the block and the drop down gives units of minutes/hours/days/weeks but not every time the block is refreshed.

Do I have to set to say every 1 min and then set a cron to run which will allow random quotes at refresh providing a minute has gone by?

If so, are there any specific settings needed for the cron (I've never set a cron before, so it's all new to me)?

nancydru’s picture

I hope you're using something newer than 5.x-1.1. In the latest, the description for this includes "Leave this value blank to have the quote updated every time the block is viewed."

Dubber Dan’s picture

Yep, I'm using 5.x.1.3 and it looks like a slight caching issue. Sometimes it seems to change each view and others it doesn't.

nancydru’s picture

Status: Closed (works as designed) » Postponed (maintainer needs more info)

I think 6.x has a way to force the block to not cache for anonymous users, but I don't know about 5.x. I could force it to clear the whole cache, but I doubt you really want that. I'll have to do some digging.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed

Good news: I committed a fix to the 6.x branch.
Bad news: I can't find a way to make it work in 5.x when caching is enabled. Even setting it to refresh every second didn't help.

nancydru’s picture

Status: Fixed » Closed (fixed)