function antispam_clear_cache in AntiSpam 6
Same name and namespace in other branches
- 7 antispam.module \antispam_clear_cache()
Clear Drupal 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 1739
Code
function antispam_clear_cache() {
static $already_done = FALSE;
if (!$already_done) {
cache_clear_all();
$already_done = TRUE;
}
}