minor settings updates and job runners

This commit is contained in:
kleines Filmröllchen 2025-02-02 12:52:38 +01:00
parent 8c710546af
commit 7146d40ea2
6 changed files with 93 additions and 2 deletions

25
smw-jobs.sh Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# ignore single script failures
set +e
SMW_PATH=$1
set -x
# not needed in our current config according to the documentation
#php "${SMW_PATH}/maintenance/updateSpecialPages.php" --quiet
# recommended daily jobs
php "${SMW_PATH}/maintenance/rebuildData.php" --shallow-update
php "${SMW_PATH}/maintenance/disposeOutdatedEntities.php"
php "${SMW_PATH}/maintenance/rebuildPropertyStatistics.php"
php "${SMW_PATH}/maintenance/rebuildConceptCache.php" --update --create
# recommended weekly jobs — we still run them daily to simplify the timers
php "${SMW_PATH}/maintenance/rebuildData.php" -d 100
php "${SMW_PATH}/maintenance/setupStore.php" --skip-import
# recommended monthly jobs
php "${SMW_PATH}/maintenance/removeDuplicateEntities.php"