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
Comment #1
toemaz commentedThis 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.
Comment #2
Jason Dean commentedOk 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.
Comment #3
toemaz commentedYes, 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()) {Comment #4
Jason Dean commentedHey 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
Comment #5
toemaz commentedNo more activity. Mark as closed.