From d69da87a74ea1fc18b73ec7660dad7d590e28ddd Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 14 Oct 2024 23:21:43 +0300 Subject: Add TODO file --- TODO | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..b21387f --- /dev/null +++ b/TODO @@ -0,0 +1,10 @@ +GIF caching + Most of the time `cptc` consumes by downloading avatar and generating gifs. + It could be fixed by using some reverse proxy that has caching enabled, but + there's a smarter way to do caching. + + Instead of watching for time of avatar downloading, `cptc` should look at + the avatar hash which is got on the first request to the discord (about + getting info about the user). If avatar hash has changed - it means that + user changed it, and so `cptc` should redownload avatar and regenerate gif. + If there's already a generated gif, `cptc` should return that one. -- cgit 1.4.1