What are the minimum, maximum, and default cache times for the lemmy badges? #10791
-
Badge in topic: https://shields.io/badges/lemmy Param that my question is about: "cacheSeconds" There are three things that I'm curious about: I tried digging through the code to find that out but I have no coding experience so I wasn't able to get the information. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Default for lemmy is 900 seconds (15 minutes) |
Beta Was this translation helpful? Give feedback.
Default for lemmy is 900 seconds (15 minutes)
You can use the
cacheSeconds
param to ask the badge to be cached for longer than this, but not less time. So the default is also the minimum. If set cacheSeconds to a number lower than 900, we'll just ignore itThere is no maximum limit to the maximum you can set