ChrisRenfrow / zulip-emoji-feed

Presents authenticated users with RC's Zulip custom emojis for idle browsing and discovery!
https://zulip-emoji.vercel.app
0 stars 0 forks source link

Rework emoji content refresh #3

Closed ChrisRenfrow closed 3 weeks ago

ChrisRenfrow commented 2 months ago

Currently, to refresh the emoji data cache, the entire project needs to be rebuilt. This is only done when new commits are applied to main, or manually. Rebuilds could be automated through Vercel chron tasks (probably), but this heavy-handed and unnecessary.

One solution could be to create an /api/refresh route which could trigger the refresh on POST and have a chron task issue a request to that endpoint at a chosen interval. With the limitations currently in place (bailing out if the data cache file is younger than an hour) it seems unlikely to be a target for abuse.

ChrisRenfrow commented 2 months ago

Labeling as a bug because the current behavior goes against the expected functionality (the latest emoji).

ChrisRenfrow commented 3 weeks ago

Closing this as partially fixed via 722538635a6bb41ccbf3002282a4c4bcb140b36e.