You are viewing a single comment's thread from:

RE: Introducing the Hunnypot 🍯

in Synergy Builders6 days ago

Both actually, originally it was just by time, but after I made the post I added a cap of 1000 max_cache (env var, so can be adjusted) jut to prevent potential memory leaks since it's in mem cache and not a redis cache or anything.

Sort:  

Time cap plus a hard max is great, it save cycles on modest hardware. If the cAChe hits 1000, are you evicting oldest or LRU style to keep stories stable? Also thsi might help perf if TTL refresh on hit, else hot entries churn fast :)