festbench-web/routes/console.php

11 lines
477 B
PHP

<?php
use Illuminate\Support\Facades\Schedule;
// Snapshot the flat default home view every 5 minutes — at high traffic the
// request path never runs the UNION. Cheap on this data volume.
Schedule::command('festbench:snapshot')->everyFiveMinutes();
// Ensure next month's Postgres partitions exist before inserts need them.
// (Created by the migration for +/-1 year; this keeps future months coming.)
// Placeholder command added when partition maintenance is wired up.