mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 05:34:12 +00:00
Cache warning
This commit is contained in:
parent
b0c575cf25
commit
acb922db65
1 changed files with 6 additions and 0 deletions
|
@ -305,6 +305,12 @@ func ApiWrapperCacheStatistics(context *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if !config.UseCache {
|
||||
context.JSON(http.StatusBadRequest, gin.H{"error": "Caching is not enabled, so a cache request is useless."})
|
||||
context.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
// Check connection to every Tautulli server
|
||||
for i := 0; i < len(config.TautulliConfig); i++ {
|
||||
log.Println("Checking Tautulli server '" + config.TautulliConfig[i].TautulliName + "'.")
|
||||
|
|
Loading…
Reference in a new issue