Increase photo rail cache ttl
This commit is contained in:
		
							parent
							
								
									14f9a092d8
								
							
						
					
					
						commit
						7abcb489f4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -85,7 +85,7 @@ proc cache*(data: List) {.async.} =
 | 
			
		|||
  await setEx(data.listKey, listCacheTime, compress(toFlatty(data)))
 | 
			
		||||
 | 
			
		||||
proc cache*(data: PhotoRail; name: string) {.async.} =
 | 
			
		||||
  await setEx("pr:" & toLower(name), baseCacheTime, compress(toFlatty(data)))
 | 
			
		||||
  await setEx("pr:" & toLower(name), baseCacheTime * 2, compress(toFlatty(data)))
 | 
			
		||||
 | 
			
		||||
proc cache*(data: User) {.async.} =
 | 
			
		||||
  if data.username.len == 0: return
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue