Module cronjobs

Source
Expand description

Scheduled tasks for the database.

Constants§

CLEANUP_INTERVAL 🔒
How often the deleted maps are cleaned up in seconds.

Functions§

cleanup_layers
Permanently remove deleted layers older than 1 day from the database. TODO: increase time in the future Runs every CLEANUP_INTERVAL seconds.
cleanup_maps
Permanently remove deleted maps older than 30 days from the database. Runs every CLEANUP_INTERVAL seconds.