Cache doesn't refresh?

facelikebambi - July 20, 2008 - 14:22
Project:Latest Members
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

toemaz - July 21, 2008 - 10:37
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

facelikebambi - July 22, 2008 - 09:30

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

toemaz - July 22, 2008 - 13:10

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

facelikebambi - July 22, 2008 - 13:59

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

toemaz - October 2, 2008 - 13:37
Status:active» closed

No more activity. Mark as closed.

 
 

Drupal is a registered trademark of Dries Buytaert.