Download & Extend

Stopping display of "Ad module file-cached data has been flushed to the database"

Project:Advertisement
Version:6.x-2.1
Component:ad module
Category:bug report
Priority:normal
Assigned:Jeremy
Status:closed (fixed)

Issue Summary

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

#1

Category:support request» bug report
Assigned to:Anonymous» Jeremy

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.

#2

Thanks!

Will keep checking back for news.

#3

hello Emma,

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

Thanks,
Edward

#4

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

#5

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

#6

Status:fixed» closed (fixed)

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

#7

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.