protected function CampaignMonitor::getCacheTimeout in Campaign Monitor 8
Create a UNIX timestamp based on the cache timeout set in the administration interface.
Return value
string A UNIX timestamp.
6 calls to CampaignMonitor::getCacheTimeout()
- CampaignMonitor::deleteList in src/
CampaignMonitor.php - Delete a list from Campaign Monitor. This action can not be reverted. The list is also removed from the local cache.
- CampaignMonitor::getCampaigns in src/
CampaignMonitor.php - Get basic information about campaigns in the form of a keyed array. The information is stored locally in a temporary cache. The array is formatted like this:.
- CampaignMonitor::getDrafts in src/
CampaignMonitor.php - Get basic information about drafts in the form of a keyed array. The information is stored locally in a temporary cache. The array is formatted like this:.
- CampaignMonitor::getListStats in src/
CampaignMonitor.php - Fetch stats about a given list, which includes number of subscribers and unsubscribers. This information is temporarily stored in the local cache. The default timeout is 360 seconds.
- CampaignMonitor::getSubscriber in src/
CampaignMonitor.php - Get values entered by the subscriber, when she/he subscribed to a given list.
File
- src/
CampaignMonitor.php, line 162 - 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
Namespace
Drupal\campaignmonitorCode
protected function getCacheTimeout() {
return time() + ($this->config
->get('cache_timeout') ? (int) $this->config
->get('cache_timeout') : 360);
}