You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/launch_epr_service_storage_indexer.sh
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ usage() {
19
19
echo -e "\t\t\tIf set, the bucket name will be ignored (-b parameter) and Package Registry will use its default development bucket gs://fake-package-storage-internal"
20
20
echo -e "\t-c <config_path>: Path to the configurastion file. Default: \"\""
21
21
echo -e "\t-s : Enable SQL Storage indexer. By default Storage Indexer is enabled."
22
-
echo -e "\t-C : Enable Search Cache. Just supported with SQL Storage indexer. By default Search Cache is disabled."
22
+
echo -e "\t-C : Enable Cache for Search and Categories endpoints. Just supported with the SQL Storage indexer. By default both Caches are disabled."
23
23
echo -e "\t-d: Enable debug mode. Default: false"
24
24
echo -e "\t-h: Show this message"
25
25
}
@@ -30,8 +30,7 @@ INDEX_PATH=""
30
30
EMULATOR_HOST="localhost:4443"
31
31
CONFIG_PATH="${SCRIPT_DIR}/../config.yml"
32
32
ENABLE_STORAGE_SQL_INDEXER=0
33
-
ENABLE_SEARCH_CACHE=0
34
-
ENABLE_DEBUG_MODE=0
33
+
ENABLE_CACHE=0
35
34
36
35
whilegetopts":b:p:i:e:c:sdCh" o;do
37
36
case"${o}"in
@@ -54,7 +53,7 @@ while getopts ":b:p:i:e:c:sdCh" o; do
54
53
ENABLE_STORAGE_SQL_INDEXER=1
55
54
;;
56
55
C)
57
-
ENABLE_SEARCH_CACHE=1
56
+
ENABLE_CACHE=1
58
57
;;
59
58
d)
60
59
ENABLE_DEBUG_MODE=1
@@ -101,8 +100,9 @@ else
101
100
export EPR_FEATURE_STORAGE_INDEXER="false"
102
101
fi
103
102
104
-
if [[ "${ENABLE_SEARCH_CACHE}"== 1 ]];then
103
+
if [[ "${ENABLE_CACHE}"== 1 ]];then
105
104
export EPR_FEATURE_ENABLE_SEARCH_CACHE="true"
105
+
export EPR_FEATURE_ENABLE_CATEGORIES_CACHE="true"
106
106
fi
107
107
108
108
export EPR_DISABLE_PACKAGE_VALIDATION="true"
@@ -113,8 +113,10 @@ if [[ "${ENABLE_DEBUG_MODE}" == 1 ]]; then
0 commit comments