Cache Links #66

Closed
opened 2024-12-20 01:48:22 -05:00 by rainbownapkin · 4 comments
rainbownapkin commented 2024-12-20 01:48:22 -05:00 (Migrated from gitlab.com)

Create a map in linkUtils which gets checked every time a link is checked.

If a match is found, use the data from the map. Otherwise, pull the link, save the data to the map, kick off a timeout with a function to delete the entry from the map in 10 minutes, and finally return the link info.

This should provide better performance in situations where coatrooms may be filled by emotes (eg: [catjam] floods)

Create a map in linkUtils which gets checked every time a link is checked. If a match is found, use the data from the map. Otherwise, pull the link, save the data to the map, kick off a timeout with a function to delete the entry from the map in 10 minutes, and finally return the link info. This should provide better performance in situations where coatrooms may be filled by emotes (eg: [catjam] floods)
rainbownapkin commented 2024-12-20 01:48:22 -05:00 (Migrated from gitlab.com)

added #30 as parent issue

added #30 as parent issue
rainbownapkin commented 2024-12-20 01:51:48 -05:00 (Migrated from gitlab.com)

changed the description

changed the description
rainbownapkin commented 2024-12-20 01:51:55 -05:00 (Migrated from gitlab.com)

changed the description

changed the description
rainbownapkin (Migrated from gitlab.com) closed this issue 2024-12-20 02:32:29 -05:00
rainbownapkin commented 2024-12-20 02:32:30 -05:00 (Migrated from gitlab.com)

linkUtils.js now caches marked links for 5 minutes: 163cecf9f0

linkUtils.js now caches marked links for 5 minutes: 163cecf9f097c507f99b818bad4e09461ffe423e
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rainbownapkin/canopy#66
No description provided.