Micro fixes.

This commit is contained in:
2024-02-15 10:21:51 +00:00
parent 0bdea741bf
commit ebbb1c53f5
4 changed files with 26 additions and 1 deletions
+5
View File
@@ -136,6 +136,11 @@ func processGraphQLRequest(c *fiber.Ctx) error {
wasCached := false
if parsedResult.cacheRefresh {
cfg.Logger.Debug("Cache refresh requested via query", map[string]interface{}{"user_id": extractedUserID, "request_uuid": c.Locals("request_uuid")})
cacheDelete(calculateHash(c))
}
// Handling Cache Logic
if parsedResult.cacheRequest || cfg.Cache.CacheEnable {
cfg.Logger.Debug("Cache enabled", map[string]interface{}{"via_query": parsedResult.cacheRequest, "via_env": cfg.Cache.CacheEnable})