Only update SQL caches on Mondays
This commit is contained in:
parent
e926f89838
commit
fbd7b71d73
1 changed files with 6 additions and 2 deletions
|
|
@ -9,5 +9,9 @@ PSQL="psql -U manned -Awtq"
|
||||||
./fedora.sh current
|
./fedora.sh current
|
||||||
./ubuntu.sh current
|
./ubuntu.sh current
|
||||||
|
|
||||||
echo "============ Updating SQL indices"
|
# Only update indices once a week (on mondays). This process is slow and the data doesn't often change anyway.
|
||||||
$PSQL -f update_indices.sql
|
if [ `date +%u` == 1 ]
|
||||||
|
then
|
||||||
|
echo "============ Updating SQL indices"
|
||||||
|
$PSQL -f update_indices.sql
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue