You are here

public function CampaignMonitorCampaignController::clearCampaignCache in Campaign Monitor 8

Callback to clear config cache.

File

src/Controller/CampaignMonitorCampaignController.php, line 159

Class

CampaignMonitorCampaignController
Campaign Monitor Lists controller.

Namespace

Drupal\campaignmonitor\Controller

Code

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

  // drupal_set_message('Campaign Monitor caches cleared');.
  return new RedirectResponse('/admin/config/services/campaignmonitor/campaigns');
}