]> git.mxchange.org Git - friendica.git/blobdiff - include/cron.php
Degrade priority step by step
[friendica.git] / include / cron.php
index 76f3e410196185514b9c24a12ef8ff3c6d8e8d62..0e587784404bb515b71f3960a00b5c9c2b6925be 100644 (file)
@@ -82,6 +82,9 @@ function cron_run(&$argv, &$argc){
                proc_run(PRIORITY_MEDIUM, 'include/dbclean.php');
 
                proc_run(PRIORITY_LOW, "include/cronjobs.php", "update_photo_albums");
+
+               // Delete all done workerqueue entries
+               dba::e('DELETE FROM `workerqueue` WHERE `done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 12 HOUR');
        }
 
        // Poll contacts