wybiral / tube

Personal video streaming server.
MIT License
264 stars 77 forks source link

Cache the feed #14

Closed wybiral closed 5 years ago

wybiral commented 5 years ago

Currently the RSS feed is generated every time it's requested. That's pretty wasteful if people are requesting the feed at some frequency, especially if there are a lot of videos in the library. It would be best to only build the feed after the library changes.

It's probably easiest to move the feed generating portion into the Library type. It is a feed of the library, after all. Otherwise we'd need some kind of messaging to trigger the outside components when the library is changed.