Hi

In the block settings, cache time is set to 3600 but this doesn't seem to be doing anything. I had a couple of new members with profile images for 3 days and the block didn't refresh. I had to go into the database and delete the latest members entry in the cache table manually.

Am I missing something here?

Thanks, Jason

Comments

toemaz’s picture

Category: support » bug

This could be a bug indeed. Question: could yet set the cache expire time on 0 sec and try to see what is does when you add a new member?

Be aware that the latest members module only displays new members who uploaded a picture. So when you add a new member, make sure these members have set a picture as well.

Jason Dean’s picture

Ok I tried this - set cache expire to 0 and added a new user, then logged in as that user and uploaded a profile image. The latest members block didn't refresh. I even ran a manual cron job, though not sure that was necessary.

Again, manually deleting the record from cache table updated the block straight away.

toemaz’s picture

Yes, the cron is necessary to remove the expired cache records in the cache tables.

Anyway, could you try something out: Change line 54
if ($cache) {
to
if ($cache->expire > time()) {

Jason Dean’s picture

Hey that certainly works on my test system now, with the expire time set to 0. Added a new user their pic showed up instantly :)

Will now test on my live site - thanks

toemaz’s picture

Status: Active » Closed (fixed)

No more activity. Mark as closed.