aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-02-24 07:55:58 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-02-24 07:55:58 +0000
commit88f51ea47cd255f103caacabc38c26d5bf27bb98 (patch)
treeb3417630f789bcbaa6e6e4fd52dbd0918dd38765
parentc7283d7886a7d06dbc9b317eaea5d64a343c67bd (diff)
fix garbage collector cron job, fixes #5270
Closes #5270 Merge request studip/studip!3951
-rw-r--r--lib/cronjobs/garbage_collector.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/cronjobs/garbage_collector.php b/lib/cronjobs/garbage_collector.php
index eba57fc..961e086 100644
--- a/lib/cronjobs/garbage_collector.php
+++ b/lib/cronjobs/garbage_collector.php
@@ -168,15 +168,6 @@ class GarbageCollectorJob extends CronJob
// Remove old plugin assets
PluginAsset::deleteBySQL('chdate < ?', [time() - PluginAsset::CACHE_DURATION]);
- // Remove expired oauth server nonces
- $query = "DELETE FROM `oauth_server_nonce`
- WHERE `osn_timestamp` < UNIX_TIMESTAMP(NOW() - INTERVAL 6 HOUR)";
- $removed = DBManager::get()->exec($query);
-
- if ($removed > 0 && $parameters['verbose']) {
- printf(_('Gelöschte Server-Nonces: %u') . "\n", (int)$removed);
- }
-
// Remove expired consultation slots
$condition = "LEFT JOIN `consultation_slots` USING (`block_id`)
JOIN `config_values`