Skip to content

Commit f0e8221

Browse files
increase maxAmount for GetAllCacheKeys
1 parent 4321b85 commit f0e8221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17189,7 +17189,7 @@ func HandleListCacheKeys(resp http.ResponseWriter, request *http.Request) {
1718917189
return
1719017190
}
1719117191

17192-
maxAmount := 50
17192+
maxAmount := 150
1719317193
top, topOk := request.URL.Query()["top"]
1719417194
if topOk && len(top) > 0 {
1719517195
val, err := strconv.Atoi(top[0])
@@ -17825,7 +17825,7 @@ func HandleGetCacheKey(resp http.ResponseWriter, request *http.Request) {
1782517825
if err != nil {
1782617826

1782717827
// Doing a last resort search, e.g. to handle spaces and the like
17828-
allkeys, _, err := GetAllCacheKeys(ctx, org.Id, "", 30, "")
17828+
allkeys, _, err := GetAllCacheKeys(ctx, org.Id, "", 150, "")
1782917829
if err == nil {
1783017830
cacheData = &CacheKeyData{}
1783117831
searchkey := strings.ReplaceAll(strings.Trim(strings.ToLower(tmpData.Key), " "), " ", "_")

0 commit comments

Comments
 (0)