Cache RIT Images better #292
Labels
good first issue
javascript
Pull requests that update Javascript code
python
Pull requests that update Python code
This is a bad cache
packet/packet/context_processors.py
Lines 58 to 70 in f61cd2b
It caches the first call to this function for any given username (up to 256 of them) via
functools.lru_cache
, which is bad, because it kinda defeats the point of gravatar.We could do some form of caching, but probably shouldn't. Loading these images lazily in the frontend would probably be much better.
At the very least, please remove the cache so we can stop kicking the pods to have photos update.
The text was updated successfully, but these errors were encountered: