Skip to content

Commit 97a8dde

Browse files
committed
Bump version; increase list cache interval to 4 hours
1 parent d84a089 commit 97a8dde

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MCServeMe furthermore features a number of command line parameters as well–wit
4545

4646
**It seems that MCServeMe is sometimes “caching” something during startup, what is happening?**
4747

48-
MCServeMe regularly downloads a list of available server jars and other components using the Fabric API into a cache directory. The interval is every hour. To disable this feature and only update manually from the main menu start MCServeMe with the `-n`/`--no-auto-cache` parameter.
48+
MCServeMe regularly downloads a list of available server jars and other components using the Fabric API into a cache directory. The default interval is every four hours. To disable this feature and only update manually from the main menu start MCServeMe with the `-n`/`--no-auto-cache` parameter.
4949

5050
**A word is missing here and there in some of the dialogs. Are those spelling errors?**
5151

mcserveme

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
# - zip
4545
# - tar + gzip
4646
# - 7zr
47+
#
48+
# TODO: If available use rsync for copy/move file operations
4749

4850
##################################
4951
# Global constants and variables #
@@ -62,7 +64,7 @@ FALSE="1"
6264
APP_NAME="MCServeMe"
6365
SCRIPT_NAME=$(basename $0)
6466
APP_DESC="MCJE server launcher for the terminal"
65-
APP_VER="v0.02"
67+
APP_VER="v0.03"
6668
MAINTAINER="lortordermur"
6769

6870
# Whether we are in developer mode
@@ -85,7 +87,7 @@ FABRIC_API_URL="https://meta.fabricmc.net/v2"
8587

8688
# Common API‌ constants
8789

88-
API_CACHE_INTERVAL="3600" # seconds
90+
LIST_CACHE_INTERVAL="14400" # seconds
8991

9092
# Filesystem related stuff
9193

@@ -180,7 +182,6 @@ AgreedToEULAKey="agreed-to-eula"
180182
NAVIGATION_DELAY="1" # Seconds of delay after interacting with a dialog
181183
INFO_DELAY="3" # A somewhat longer delay for infobox chains
182184
LONG_DELAY=$(($INFO_DELAY * 2))
183-
#IALOG_COMMON_MIN="--colors --column-separator '|' --sleep $NAVIGATION_DELAY --stdout"
184185
DIALOG_COMMON_MIN="--colors --sleep $NAVIGATION_DELAY --stdout"
185186
DIALOG_COMMON="$DIALOG_COMMON_MIN --defaultno --scrollbar"
186187

@@ -1930,7 +1931,7 @@ init () {
19301931

19311932
onlineWarning "It seems there is no internet connection. Some functionality will be limited."
19321933

1933-
[ $AUTO_CACHE = $TRUE ] && online && needToCache $GAME_VER_FILE $API_CACHE_INTERVAL && cacheFabricMeta
1934+
[ $AUTO_CACHE = $TRUE ] && online && needToCache $GAME_VER_FILE $LIST_CACHE_INTERVAL && cacheFabricMeta
19341935

19351936
[ $KICKSTART = $FALSE ] && buildServerLists
19361937

0 commit comments

Comments
 (0)