You are here

public function CampaignMonitorListsController::clearListCache in Campaign Monitor 8

Same name and namespace in other branches
  1. 8.2 src/Controller/CampaignMonitorListsController.php \Drupal\campaignmonitor\Controller\CampaignMonitorListsController::clearListCache()

Callback to clear config cache.

1 string reference to 'CampaignMonitorListsController::clearListCache'
campaignmonitor.routing.yml in ./campaignmonitor.routing.yml
campaignmonitor.routing.yml

File

src/Controller/CampaignMonitorListsController.php, line 162

Class

CampaignMonitorListsController
Campaign Monitor Lists controller.

Namespace

Drupal\campaignmonitor\Controller

Code

public function clearListCache() {
  $caches = [
    'cache.config',
    'cache.data',
  ];
  campaignmonitor_clear_cache($caches);
  drupal_set_message('Campaign Monitor caches cleared');
  return new RedirectResponse('/admin/config/services/campaignmonitor/lists');
}