Update cache code to INI style configuration

Change the defines to config_get and add one cache option and one option
to define memcache_servers. Mention the required dependency to get
memcached working in the INSTALL file.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Jelle van der Waa 2018-03-09 23:42:51 +01:00 committed by Lukas Fleischer
parent c3bca45973
commit ca6332de6e
3 changed files with 12 additions and 7 deletions

View file

@ -35,6 +35,9 @@ snapshot_uri = /cgit/aur.git/snapshot/%s.tar.gz
enable-maintenance = 1
maintenance-exceptions = 127.0.0.1
render-comment-cmd = /usr/local/bin/aurweb-rendercomment
# memcache or apc
cache = none
memcache_servers = 127.0.0.1:11211
[ratelimit]
request_limit = 4000