about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-10-14 23:21:43 +0300
committerNakidai <nakidai@disroot.org>2024-10-14 23:21:43 +0300
commitd69da87a74ea1fc18b73ec7660dad7d590e28ddd (patch)
treeb2a971bea1c9dd83fc6b3d5b3195b00b94765ebb
parentd9940f79b6ac12aa4682b1f2b24160f5566fe148 (diff)
downloadcptc-d69da87a74ea1fc18b73ec7660dad7d590e28ddd.tar.gz
cptc-d69da87a74ea1fc18b73ec7660dad7d590e28ddd.zip
Add TODO file
-rw-r--r--TODO10
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.