#!/usr/bin/php purgeArchive(); if ($affected_rows === false) { $log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError()); $monitoring->endCronjob($cron_name, 'E0008', 0, false, false); } else { $log->logDebug("Deleted $affected_rows archived shares this run"); } // Cron cleanup and monitoring require_once('cron_end.inc.php'); ?>