You are here

function _cdn_cron_delete_temporary_files in CDN 5

Helper function to clean up temporary files - i.e. copies of files that were being synchronized, but needed the URLs embedded to be updated.

2 calls to _cdn_cron_delete_temporary_files()
cdn_cron_cleanup in ./cdn_cron.inc
Shutdown function for CDN cron cleanup.
cdn_cron_run in ./cdn_cron.inc
Executes a CDN synchronization cron run when called

File

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

Code

function _cdn_cron_delete_temporary_files() {
  $list = file_scan_directory(file_directory_path() . '/cdn', '.*');
  array_map(create_function('$file', 'return file_delete($file->filename);'), $list);
}