mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
drop default CacheSize to 100
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ func (s *ServerConfig) LoadConfig() error {
|
||||
s.APIBaseTimeout = 500 * time.Millisecond
|
||||
s.APIMaxBackoffTime = 8000 * time.Millisecond
|
||||
|
||||
s.CacheSize = 1000
|
||||
s.CacheSize = 100
|
||||
s.CacheTTL = 5 * time.Minute
|
||||
|
||||
s.ResponseSaveLocation = "/tmp/pixivfe/responses"
|
||||
|
||||
@@ -205,7 +205,7 @@ PixivFE caches responses from the Pixiv API to improve performance. The followin
|
||||
|
||||
**Required**: No
|
||||
|
||||
**Default:** `1000`
|
||||
**Default:** `100`
|
||||
|
||||
Specifies the maximum number of items that can be stored in the cache. This limits the memory usage of the cache.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user