You are here

function mailchimp_cache_clear_member in Mailchimp 8

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

Clears a mailchimp user member info cache.

Parameters

string $list_id: The list ID.

string $email: The email address.

5 calls to mailchimp_cache_clear_member()
MailchimpWebhookController::endpoint in src/Controller/MailchimpWebhookController.php
mailchimp_process_webhook in ./mailchimp.module
Processes a webhook post from Mailchimp.
mailchimp_subscribe_process in ./mailchimp.module
Wrapper around Mailchimp_Lists::subscribe().
mailchimp_unsubscribe_process in ./mailchimp.module
Unsubscribes a member from a Mailchimp list.
mailchimp_update_member_process in ./mailchimp.module
Wrapper around Mailchimp_Lists::updateMember().

File

./mailchimp.module, line 1059
Mailchimp module.

Code

function mailchimp_cache_clear_member($list_id, $email) {
  $cache = \Drupal::cache('mailchimp');
  $cache
    ->delete($list_id . '-' . $email);
}