You are here

function cdn_cron_cleanup in CDN 5

Shutdown function for CDN cron cleanup.

Also graciously stolen from Drupal's includes/common.inc.

1 string reference to 'cdn_cron_cleanup'
cdn_cron_run in ./cdn_cron.inc
Executes a CDN synchronization cron run when called

File

./cdn_cron.inc, line 129
Basic functions for CDN synchronization cron.

Code

function cdn_cron_cleanup() {

  // See if the semaphore is still locked.
  if (variable_get('cdn_cron_semaphore', FALSE)) {
    watchdog('cdn_cron', 'CDN synchronization cron run exceeded the time limit and was aborted.', WATCHDOG_WARNING);

    // Release CDN synchronization cron semaphore
    variable_del('cdn_cron_semaphore');
    _cdn_cron_delete_temporary_files();
  }
}