18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job.inc';
19 require_once SQ_INCLUDE_PATH.
'/workflow_manager.inc';
20 require_once SQ_FUDGE_PATH.
'/general/datetime.inc';
44 parent::__construct($assetid);
62 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
63 if (!system_asset_fns_create_pre_check($this)) {
66 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
67 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
69 if ($linkid = parent::create($link)) {
70 if (!system_asset_fns_create_cleanup($this)) {
76 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
78 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
81 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
98 return translate(
'cron_job_expired_matrix_cache');
144 $cache_mgr = $GLOBALS[
'SQ_SYSTEM']->am->getSystemAsset(
'cache_manager');
145 $storage = $cache_mgr->getCacheStorage();
146 if (!$storage->cleanExpiredEntries())
return SQ_CRON_JOB_ERROR;
148 return SQ_CRON_JOB_COMPLETED;
164 $res = parent::run();
165 if ($res & SQ_CRON_JOB_REMOVE) {
166 $res = $res - SQ_CRON_JOB_REMOVE;