You are here

public function CampaignMonitorCampaignCampaignController::clearCampaignCache in Campaign Monitor 8

Callback to clear config cache.

1 string reference to 'CampaignMonitorCampaignCampaignController::clearCampaignCache'
campaignmonitor_campaign.routing.yml in modules/campaignmonitor_campaign/campaignmonitor_campaign.routing.yml
modules/campaignmonitor_campaign/campaignmonitor_campaign.routing.yml

File

modules/campaignmonitor_campaign/src/Controller/CampaignMonitorCampaignCampaignController.php, line 168

Class

CampaignMonitorCampaignCampaignController
Campaign Monitor Lists controller.

Namespace

Drupal\campaignmonitor_campaign\Controller

Code

public function clearCampaignCache() {
  $caches = [
    'cache.config',
    'cache.data',
  ];
  campaignmonitor_clear_cache($caches);
  return new RedirectResponse('/admin/config/services/campaignmonitor/campaigns');
}