mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -224,9 +224,9 @@ func Config(ctx *context.Context) { | ||||
| 		ctx.Data["Mailer"] = setting.MailService | ||||
| 	} | ||||
|  | ||||
| 	ctx.Data["CacheAdapter"] = setting.CacheAdapter | ||||
| 	ctx.Data["CacheInterval"] = setting.CacheInterval | ||||
| 	ctx.Data["CacheConn"] = setting.CacheConn | ||||
| 	ctx.Data["CacheAdapter"] = setting.CacheService.Adapter | ||||
| 	ctx.Data["CacheInterval"] = setting.CacheService.Interval | ||||
| 	ctx.Data["CacheConn"] = setting.CacheService.Conn | ||||
|  | ||||
| 	ctx.Data["SessionConfig"] = setting.SessionConfig | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user