diff options
| author | Nakidai <nakidai@disroot.org> | 2024-10-14 23:21:43 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-10-14 23:21:43 +0300 |
| commit | d69da87a74ea1fc18b73ec7660dad7d590e28ddd (patch) | |
| tree | b2a971bea1c9dd83fc6b3d5b3195b00b94765ebb /TODO | |
| parent | d9940f79b6ac12aa4682b1f2b24160f5566fe148 (diff) | |
| download | cptc-d69da87a74ea1fc18b73ec7660dad7d590e28ddd.tar.gz cptc-d69da87a74ea1fc18b73ec7660dad7d590e28ddd.zip | |
Add TODO file
Diffstat (limited to 'TODO')
| -rw-r--r-- | TODO | 10 |
1 files changed, 10 insertions, 0 deletions
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. |