Explorar el Código

Fix gallery caching to prevent redundant requests

Zed hace 4 años
padre
commit
ab0c487778
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/redis_cache.nim

+ 1 - 1
src/redis_cache.nim

@@ -73,7 +73,7 @@ proc cache*(data: List) {.async.} =
   await setex(data.listKey, listCacheTime, compress(toFlatty(data)))
   await setex(data.listKey, listCacheTime, compress(toFlatty(data)))
 
 
 proc cache*(data: PhotoRail; name: string) {.async.} =
 proc cache*(data: PhotoRail; name: string) {.async.} =
-  await setex("pr:" & name, baseCacheTime, compress(toFlatty(data)))
+  await setex("pr:" & toLower(name), baseCacheTime, compress(toFlatty(data)))
 
 
 proc cache*(data: Profile) {.async.} =
 proc cache*(data: Profile) {.async.} =
   if data.username.len == 0 or data.id.len == 0: return
   if data.username.len == 0 or data.id.len == 0: return