Hi,

I'm using poormans cron at the moment as need to get my hosting to setup a proper job. However, this means that occasionally users get to see the "Ad module file-cached data has been flushed to the database" message when they happen to be the page view that triggers cron - is there any way of stopping this displaying?

Many thanks,
Emma

Comments

jeremy’s picture

Assigned: Unassigned » jeremy
Category: support » bug

Marking as a bug report -- these messages should not be displayed unless the user has permission to see them. I'll try and roll out a fix soon.

Emma’s picture

Thanks!

Will keep checking back for news.

etgraphicd2’s picture

hello Emma,

I have the same problem.
Has anyone given you a solution to this yet?

Thanks,
Edward

jeremy’s picture

Status: Active » Fixed

Fix committed:
http://drupal.org/cvs?commit=292776

I committed the same fix for the ad_memcache module:
http://drupal.org/cvs?commit=292778

etgraphicd2’s picture

Thanks Jeremy,

I just downloaded the fix module and tried to installed it.

But I get this message:
(Currently using Memcache Memcache is not installed, memcache_add_server not found.)

Would not install....says memcache add server not found.
Is this something you have dealt with before?

Thanks a lot,
Edward

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

davethedruper’s picture

FYI to anyone interested:

Took out the message saying Ad Module file-cached data has been flushed to the database.
File: Ad/cache/file/ad_cache_file.module

Changed lines 116-119 which read:

if (user_access('administer advertisements')) {
drupal_set_message(t('Ad module file-cached data has been flushed to the database.'));
}
}

To:
if (user_access('administer advertisements'));
}

Not sure if this is the best way but it worked for me.

Hope this helps someone.