From 684db551cf09cd12cdedfb9101f19402f232cb06 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 19 Aug 2013 12:52:57 -0700 Subject: [PATCH] Enable cgit caching. * modules/openstack_project/files/cgitrc: Allow 1000 cache entries. Set TTL for dynamic pages, repo summary pages, and the cgit front page to one minute. Rely on the cache defaults for other pages. The various options and their defaults can be viewed in cgitrc(5). Change-Id: I49192b1ac43446a54b8ae98a44df5860bbafe1e0 --- modules/openstack_project/files/git/cgitrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/files/git/cgitrc b/modules/openstack_project/files/git/cgitrc index fd36a70453..a8d7bb63e5 100644 --- a/modules/openstack_project/files/git/cgitrc +++ b/modules/openstack_project/files/git/cgitrc @@ -3,7 +3,16 @@ # # Enable caching of up to 1000 output entries -cache-size=0 +cache-size=1000 + +# Cache repository pages without a fixed SHA for one minute. +cache-dynamic-ttl=1 + +# Cache repo summary page for one minute. +cache-repo-ttl=1 + +# Cache cgit front page for one minute. +cache-root-ttl=1 # Specify some default clone prefixes clone-prefix=git://git.openstack.org https://git.openstack.org