mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: Separate cache expiry for stats and search
Allows us to set different cache eviction timespans for search queries and statistics. Stats and especially "last package updates" should probably be refreshed more often, whereas we might want to cache search results for a bit longer. So this gives us a bit more flexibility playing around with different settings and tweak things. Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
44c158b8c2
commit
8699457917
4 changed files with 7 additions and 5 deletions
|
@ -169,5 +169,7 @@ range_end = 172800
|
|||
[cache]
|
||||
; maximum number of keys/entries (for search results) in our redis cache, default is 50000
|
||||
max_search_entries = 50000
|
||||
; number of seconds after a cache entry expires, default is 3 minutes
|
||||
expiry_time = 180
|
||||
; number of seconds after a cache entry for search queries expires, default is 10 minutes
|
||||
expiry_time_search = 600
|
||||
; number of seconds after a cache entry for statistics queries expires, default is 5 minutes
|
||||
expiry_time_statistics = 300
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue