Cron Tasks

Scheduled jobs and when they last ran.

Process queued jobsEvery minuteNever run

Processes any pending background jobs in the database queue.

queue:work --stop-when-empty

Expire download tokensEvery 5 minutesNever run

Revokes signed download links past their expiry.

qp:expire-download-tokens

Expire user packagesHourlyNever run

Deactivates subscriptions past their expires_at date.

qp:expire-user-packages

Reset package quotasHourlyNever run

Resets base/extra/fair-use quota counters that are due for reset.

qp:reset-package-quotas

Purge unverified usersManual onlyNever run

Deletes (soft-deletes) unverified accounts past the retention period that also have zero order/subscription/transaction history. Not scheduled - run this deliberately, not routinely.

qp:purge-unverified-users

Delete inactive membersDailyNever run

Deletes member accounts with no sign-in or visit for the time picked below (also in System Options; off by default), created at least that long ago, with no balance, no active package and no bought files. Staff and resellers are never touched.

qp:delete-inactive-users

Clear unpaid ordersDailyNever run

Permanently deletes unpaid orders (and their invoices/transactions) older than the configured retention period (System Options - 7 days by default).

qp:clear-unpaid-orders

Reset "new" badgesDailyNever run

Clears the is_new flag on files past their new-badge window.

qp:reset-new-badges

Verify licenseDailyNever run

Re-checks the license key against the configured Cloudflare Worker.

qp:verify-license

Run scheduled backupHourly (self-checks due date)Never run

Runs a full backup when the admin-configured daily/weekly/monthly schedule says one is due.

qp:run-scheduled-backup

Service ordersEvery minuteNever run

Sends paid service orders to their supplier API and checks the ones in process (every 2 min at first, then less often). Rejected orders are refunded to the wallet.

qp:service-orders

Deliver webhooksEvery minuteNever run

Retries webhook deliveries that failed (after 1 min, 5 min, 30 min, 2 h and 6 h), and once an hour clears deliveries and API log entries older than 30 days.

qp:deliver-webhooks

Close stale ticketsDailyNever run

Closes support tickets that support has answered but the member has not replied to for 7 days, and emails them. Tickets waiting on staff are never closed.

qp:close-stale-tickets

Clean up databaseDailyNever run

Prunes old login logs, spent download tokens, guest-usage rows, expired sessions and cache rows, web vital beacons, staff activity past the time kept (System Options), read notifications, expired API tokens and old failed jobs, in chunks so it never locks a big table.

qp:cleanup-database

Start scheduled maintenanceEvery minuteNever run

Switches maintenance mode on when the start time set on System - Maintenance has come.

qp:start-scheduled-maintenance

Edge shortcutsEvery 5 minutesNever run

Tells the edge which redirects it may answer near the visitor without asking the main server: old ?a=downloads links, and a guest's Download click while guest downloads are off. Settings saves update it at once.

qp:edge-shortcuts

Optimize tablesWeeklyNever run

Runs OPTIMIZE TABLE on the largest tables on MySQL, or refreshes the query planner statistics on D1 (Settings → Cache).

qp:optimize-tables