mirror of https://github.com/pixelfed/pixelfed
Move account_storage_reconcile flag to config/scheduledtasks.php
Introduce a dedicated config/scheduledtasks.php for scheduled-task toggles and relocate the reconciler flag there (ACCOUNT_STORAGE_RECONCILE), reading it via config() in routes/scheduledtasks.php. Removed the setting from config/pixelfed.php. Verified both states with schedule:list.pull/7175/head
parent
61c087e560
commit
219ce0ca2b
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Scheduled Task Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Toggles for optional scheduled tasks defined in routes/scheduledtasks.php.
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| Account storage reconciler
|
||||
|
|
||||
| Optional weekly scheduled task that recalculates users.storage_used from
|
||||
| actual media, correcting drift on accounts that never upload or delete.
|
||||
| The upload/delete/read paths already self-heal stale counters, so this is
|
||||
| a background hygiene job and is disabled by default.
|
||||
*/
|
||||
'account_storage_reconcile' => env('ACCOUNT_STORAGE_RECONCILE', false),
|
||||
|
||||
];
|
||||
Loading…
Reference in New Issue