You are here

private function CampaignMonitor::getCacheTimeout in Campaign Monitor 7

Create a UNIX timestamp based on the cache timeout.

Return value

string A UNIX timestamp.

4 calls to CampaignMonitor::getCacheTimeout()
CampaignMonitor::getCampaigns in lib/campaignmonitor.class.inc
Get basic information about campaigns in the form of a keyed array.
CampaignMonitor::getListStats in lib/campaignmonitor.class.inc
Fetch stats about a given list.
CampaignMonitor::getSubscriber in lib/campaignmonitor.class.inc
Get values entered by the subscriber.
CampaignMonitor::removeSubscriberFromCache in lib/campaignmonitor.class.inc
Remove subscribers from local cache.

File

lib/campaignmonitor.class.inc, line 280
Implementation of the CampaignMonitor class.

Class

CampaignMonitor
Implementation of the CampaignMonitor class.

Code

private function getCacheTimeout() {
  $options = variable_get('campaignmonitor_general', []);
  return time() + (isset($options['cache_timeout']) ? $options['cache_timeout'] : '360');
}