# ============================================
# Cron Jobs for Temporary Files Cleanup
# ============================================

# Clean temporary files every hour
0 * * * * /usr/bin/php /var/www/html/homoeopathy/scripts/cleanup-temp.php >> /var/www/html/homoeopathy/logs/cron.log 2>&1

# Clean expired sessions every 30 minutes
*/30 * * * * /usr/bin/php /var/www/html/homoeopathy/scripts/cleanup-temp.php --sessions >> /var/www/html/homoeopathy/logs/cron.log 2>&1

# Clean cache every hour (keep fresh data)
0 * * * * /usr/bin/php /var/www/html/homoeopathy/scripts/cleanup-temp.php --cache >> /var/www/html/homoeopathy/logs/cron.log 2>&1

# Clean uploads daily at 3 AM
0 3 * * * /usr/bin/php /var/www/html/homoeopathy/scripts/cleanup-temp.php --uploads >> /var/www/html/homoeopathy/logs/cron.log 2>&1

# Clean login attempts weekly on Sunday
0 0 * * 0 /usr/bin/php /var/www/html/homoeopathy/scripts/cleanup-temp.php --attempts >> /var/www/html/homoeopathy/logs/cron.log 2>&1