]> git.ipfire.org Git - ipfire.org.git/commit
cache: Remove avatars/images from cache if not used
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Jan 2024 11:41:55 +0000 (11:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Jan 2024 11:42:45 +0000 (11:42 +0000)
commit531c4989dba50d6beb24443067d67f97caf1c042
tree88fa8ab66704f06ee11d9525f543317646756b57
parent0c1186ef0694d12cc654288f09cf09343324c5ee
cache: Remove avatars/images from cache if not used

This creates a simple LRU policy to evict items from the cache that have
not been accessed in 24 hours.

Fixes: #13547
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py
src/backend/wiki.py
src/web/users.py