You are here

function mailchimp_cache_clear_campaign in Mailchimp 8

Same name and namespace in other branches
  1. 7.5 mailchimp.module \mailchimp_cache_clear_campaign()
  2. 7.2 mailchimp.module \mailchimp_cache_clear_campaign()
  3. 7.3 mailchimp.module \mailchimp_cache_clear_campaign()
  4. 7.4 mailchimp.module \mailchimp_cache_clear_campaign()
  5. 2.x mailchimp.module \mailchimp_cache_clear_campaign()

Clears a mailchimp activity cache.

Parameters

string $campaign_id: The campaign ID.

2 calls to mailchimp_cache_clear_campaign()
MailchimpWebhookController::endpoint in src/Controller/MailchimpWebhookController.php
mailchimp_process_webhook in ./mailchimp.module
Processes a webhook post from Mailchimp.

File

./mailchimp.module, line 1081
Mailchimp module.

Code

function mailchimp_cache_clear_campaign($campaign_id) {
  $cache = \Drupal::cache('mailchimp');
  $cache
    ->delete('mailchimp_campaign_' . $campaign_id);
}