Skip to content

Commit

Permalink
chore(image-proxy): increase cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Nov 22, 2023
1 parent 967a3c6 commit 14e96f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewConfig() *Config {
},
Image: ImageConfig{
ProxySizes: "320,768",
Cache: "boltdb:///tmp/readflow-images.cache?maxSize=256,maxEntries=1024,maxEntrySize=2",
Cache: "boltdb:///tmp/readflow-images.cache?maxSize=256,maxEntries=5000,maxEntrySize=1",
},
RateLimiting: RateLimitingConfig{
Notification: RateLimiting{
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ proxy_url = "${READFLOW_IMAGE_PROXY_URL}"
# Default: "320,768"
proxy_sizes = "${READFLOW_IMAGE_PROXY_SIZES}"
## Cache paramters
# Default: "boltdb:///tmp/readflow-images.cache?maxSize=256,maxEntries=1024,maxEntrySize=2"
# Default: "boltdb:///tmp/readflow-images.cache?maxSize=256,maxEntries=5000,maxEntrySize=1"
cache = "${READFLOW_IMAGE_CACHE}"

[pdf]
Expand Down

0 comments on commit 14e96f6

Please sign in to comment.