mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
Add periodic cleanup of orphaned drafts: cleanup job, just command, deploy cron
This commit is contained in:
7
deploy/xamxam-cleanup.cron
Normal file
7
deploy/xamxam-cleanup.cron
Normal file
@@ -0,0 +1,7 @@
|
||||
# XAMXAM — orphaned draft cleanup cron job
|
||||
# Installed to /etc/cron.d/xamxam-cleanup (system cron format: minute hour dom month dow user command)
|
||||
#
|
||||
# Deletes draft theses older than 24h that have no attached files.
|
||||
# Runs every 4 hours — drafts only become eligible after 24h, so this is ample.
|
||||
# The script is a dry-run unless --no-dry-run is passed.
|
||||
0 */4 * * * www-data php /var/www/xamxam/scripts/cleanup-drafts.php --no-dry-run >> /var/log/xamxam-cleanup.log 2>&1
|
||||
Reference in New Issue
Block a user