Make package details cache TTL configurable

The TTL for package details can be much longer than for generic values
since they never change. Note that when an update is pushed via Git, all
packages belonging to that package base are deleted and new packages are
created.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2019-10-07 12:19:20 -04:00
parent f804ea4abb
commit 734527370d
3 changed files with 15 additions and 7 deletions

View file

@ -38,6 +38,7 @@ render-comment-cmd = /usr/local/bin/aurweb-rendercomment
localedir = /srv/http/aurweb/aur.git/web/locale/
# memcache or apc
cache = none
cache_pkginfo_ttl = 86400
memcache_servers = 127.0.0.1:11211
[ratelimit]