HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/marketing/admin/cron/maintenance.php
<?php
/**
 * This file is for all maintenance purpose
 * - Clearing all exports queries that are stalled
 * - Clearing all the import files that are still there and failed..
 * - Clearing all the old session files that are older then 5 years days.
 *
 * @package interspire.iem.cron
 */

// Include CRON common file
require_once dirname(__FILE__) . '/common.php';


$allow_maintenance = CheckCronSchedule('maintenance');

if ($allow_maintenance) {
	$api = new Maintenance();

	$status = $api->clearImportFiles();
	if (!$status) {
		trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear old import files', E_USER_NOTICE);
	}

	$status = $api->pruneExportQueries();
	if (!$status) {
		trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear export queries from the queue table', E_USER_NOTICE);
	}

	$status = $api->clearOldSession();
	if (!$status) {
		trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to cleanup old session files', E_USER_NOTICE);
	}
}