function antispam_clear_cache in AntiSpam 7
Same name and namespace in other branches
- 6 antispam.module \antispam_clear_cache()
Implements hook_clear_cache().
This function needs to be called so anonymous users get updated content when certain operations have been executed.
3 calls to antispam_clear_cache()
- antispam_content_publish_operation in ./
antispam.module - Execute content publish/unpublish operations.
- antispam_content_spam_operation in ./
antispam.module - Mark content as spam or remove the mark.
- antispam_cron_shutdown in ./
antispam.cron.inc - Shutdown function executed at cron time.
File
- ./
antispam.module, line 1858 - Primary hook implementations for the Antispam module.
Code
function antispam_clear_cache() {
static $already_done = FALSE;
if (!$already_done) {
cache_clear_all();
$already_done = TRUE;
}
}