public function CampaignMonitorListsController::clearListCache in Campaign Monitor 8
Same name and namespace in other branches
- 8.2 src/Controller/CampaignMonitorListsController.php \Drupal\campaignmonitor\Controller\CampaignMonitorListsController::clearListCache()
Callback to clear config cache.
1 string reference to 'CampaignMonitorListsController::clearListCache'
File
- src/
Controller/ CampaignMonitorListsController.php, line 162
Class
- CampaignMonitorListsController
- Campaign Monitor Lists controller.
Namespace
Drupal\campaignmonitor\ControllerCode
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');
}