From dfa9419b6706b6c51d38388f8a1001f0a3b57246 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 23 Oct 2025 08:35:31 +0200 Subject: [PATCH] Tuning some numbers --- util/cron.sh | 2 +- util/export.sh | 2 +- www/index.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/cron.sh b/util/cron.sh index 07cb0b4..d3a6ad8 100755 --- a/util/cron.sh +++ b/util/cron.sh @@ -15,7 +15,7 @@ $PSQL -f update_indices.sql echo "============ Updating HTML cache" test -f .config && source ./.config -./cache-html.pl --batch=5 --delay=0.5 --maxbatches=100 +./cache-html.pl --batch=5 --delay=0.5 --maxbatches=1000 echo "============ Updating database dumps" ./export.sh diff --git a/util/export.sh b/util/export.sh index 8b3619b..dfb193f 100755 --- a/util/export.sh +++ b/util/export.sh @@ -5,7 +5,7 @@ set -e mkdir -p ../dl # Only run once a week -[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +7) ] && exit +[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +6) ] && exit # Only keep the last dump rm -rf $(printf '%s\n' ../dl/????-??-?? | sort | head -n -1) diff --git a/www/index.pl b/www/index.pl index 7af2197..6e7532c 100755 --- a/www/index.pl +++ b/www/index.pl @@ -20,7 +20,7 @@ use ManUtils; # Database must be configured through env vars FU::init_db(sub { FU::Pg->connect('')->set_type(bytea => '$hex') }); FU::debug_info('/fu-debug', 'debug~', 10); -FU::log_slow_reqs 500; +FU::log_slow_reqs 200; FU::before_request {