You are here

function salesforce_api_cron in Salesforce Suite 7

Same name and namespace in other branches
  1. 6.2 salesforce_api/salesforce_api.module \salesforce_api_cron()
  2. 7.2 salesforce_api/salesforce_api.module \salesforce_api_cron()

Implements hook_cron().

File

salesforce_api/salesforce_api.module, line 902
Defines an API that enables modules to interact with the Salesforce server.

Code

function salesforce_api_cron() {
  $cache = cache_get('salesforce_api_sf_objects');

  // if the cache has already been delete or is expired then rebuild
  if (!$cache || REQUEST_TIME > $cache->expire) {
    salesforce_api_cache_build();
  }
  return;
}