From eca05b09aa269dda1309ee77ac750e29e71c3fd3 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Thu, 26 Oct 2017 04:37:33 +0300 Subject: Add commit count caching (#2774) * Add commit count caching * Small refactoring * Add different key prefix for refs and commits * Add configuratuion option to allow to change caching time or disable it --- conf/app.ini | 3 +++ 1 file changed, 3 insertions(+) (limited to 'conf/app.ini') diff --git a/conf/app.ini b/conf/app.ini index 0ce8aae52e..3a850106c1 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -339,6 +339,9 @@ INTERVAL = 60 ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180 ; memcache: `127.0.0.1:11211` HOST = +; Time to keep items in cache if not used, default is 16 hours. +; Setting it to 0 disables caching +ITEM_TTL = 16h [session] ; Either "memory", "file", or "redis", default is "memory" -- cgit v1.2.3