Project:Latest Members
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Category:support request» bug report

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.

#2

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.

#3

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

Anyway, could you try something out: Change line 54

<?php
if ($cache) {
?>

to
<?php
if ($cache->expire > time()) {
?>

#4

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

#5

Status:active» closed (fixed)

No more activity. Mark as closed.