You are here

public function CampaignMonitor::clearCache in Campaign Monitor 8

Clears all the caches used by this wrapper object.

1 call to CampaignMonitor::clearCache()
CampaignMonitor::createList in src/CampaignMonitor.php
Create a new list at the Campaign Monitor servers. The side-effect is that the local cache is cleared.

File

src/CampaignMonitor.php, line 913
Implementation of the CampaignMonitor class, which is a wrapper class for Campaign Monitor v3 API. It's implemented as a Singleton class and instances are created using the account variables and the static function getConnector(). An example:.

Class

CampaignMonitor

Namespace

Drupal\campaignmonitor

Code

public function clearCache() {
  $caches = [
    'cache.config',
    'cache.data',
  ];
  campaignmonitor_clear_cache($caches);
}