You are here

function mailchimp_cache_clear_list_activity in Mailchimp 8

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

Clears a mailchimp activity cache.

Parameters

string $list_id: The list ID.

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

File

./mailchimp.module, line 1070
Mailchimp module.

Code

function mailchimp_cache_clear_list_activity($list_id) {
  $cache = \Drupal::cache('mailchimp');
  $cache
    ->delete('mailchimp_activity_' . $list_id);
}