diff --git a/README.md b/README.md index c098c35..6912036 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,8 @@ See [dev setup docs](docs/dev_setup.md). Using a "done" file in the R2 buckets to mark the upload as finished. All scripts are checking for this file now. +Monaco is generated daily, to avoid too frequent nginx reloads, which might be bad for the in-memory cache. + ##### v0.4 Auto-update works! diff --git a/modules/tile_gen/cron.d/ofm_tile_gen b/modules/tile_gen/cron.d/ofm_tile_gen index 1c397f9..a3c0c1b 100644 --- a/modules/tile_gen/cron.d/ofm_tile_gen +++ b/modules/tile_gen/cron.d/ofm_tile_gen @@ -2,8 +2,8 @@ CMD="sudo /data/ofm/venv/bin/python -u /data/ofm/tile_gen/bin/tile_gen.py" LOG_DIR=/data/ofm/tile_gen/logs -# every hour, make a monaco run -10 * * * * ofm $CMD make-tiles monaco --upload >> $LOG_DIR/monaco-make-tiles.log 2>&1 +# every day at 2:10, make a monaco run +10 2 * * * ofm $CMD make-tiles monaco --upload >> $LOG_DIR/monaco-make-tiles.log 2>&1 # every minute, set monaco to latest * * * * * ofm $CMD set-version monaco >> $LOG_DIR/monaco-set-version.log 2>&1