From 78031f92b0ff064efa82065a3cf6020c1256a5fd Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 14 Apr 2008 23:07:52 +0200 Subject: Fix search in repo index even if caching is enabled The repository index page needed to include the querystring in the cache filename. Signed-off-by: Lars Hjemli --- cgit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgit.c b/cgit.c index 6ec763f..38b0ba5 100644 --- a/cgit.c +++ b/cgit.c @@ -179,7 +179,9 @@ static int cgit_prepare_cache(struct cacheitem *item) } if (!ctx.repo) { - item->name = xstrdup(fmt("%s/index.html", ctx.cfg.cache_root)); + item->name = xstrdup(fmt("%s/index.%s.html", + ctx.cfg.cache_root, + cache_safe_filename(ctx.qry.raw))); item->ttl = ctx.cfg.cache_root_ttl; return 1; } -- cgit 1.4.1 ut type='submit' value='switch'/> dontfiles
summary refs log tree commit diff
Commit message (Expand)Author
2021-02-05Add I Hope We Choose LoveJune McEnroe
2021-02-04Use owner-filter to add Liberapay donation buttonsJune McEnroe
2021-02-04Use owner-filter for repo page headersJune McEnroe
2021-02-04Warn twice about stopped jobsJune McEnroe
2021-02-04Remove cgit logo using cgitrcJune McEnroe
2021-01-31Add The Rosewater RedemptionJune McEnroe
2021-01-29Use int when checking for EOFJune McEnroe
2021-01-28Move gpl.c and agpl.c templates out of etcJune McEnroe
2021-01-27Set para and sect for mdocJune McEnroe
2021-01-26Use First state to match keyword at beginning of lineJune McEnroe
2021-01-25Install vi on Linux and nvi on macOSJune McEnroe
2021-01-25Use vi and lessJune McEnroe
2021-01-20Use mtags for sh in source-filterJune McEnroe
2021-01-20Generate tags for sh files in mtagsJune McEnroe
2021-01-20Add messy sh lexerJune McEnroe
2021-01-20Add all target to git.causal.agency MakefileJune McEnroe
2021-01-20Remove Lua supportJune McEnroe
2021-01-20Fix tests for diff spansJune McEnroe
2021-01-20Avoid matching ':' in make tagsJune McEnroe
2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe
2021-01-19Escape \ and / in mtags search patternsJune McEnroe
2021-01-20Use mtags in source-filterJune McEnroe
2021-01-19Add mtags to generate tags for make and mdocJune McEnroe
2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe
2021-01-19Don't use a pager if reading standard inputJune McEnroe
2021-01-19Support BSD make syntax and match *.amJune McEnroe
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
2021-01-18Allow matching lexers using first input lineJune McEnroe