Re:Before Reddit and Digg, there was Fark. Then a user-hosti...
by conradfr on Monday June 12, 2023 @06:25AM
(#36291182)
https://medium.com/@sevebadajoz/exploring-cache-optimization...
Also a lot of their content is not "hot" and "commentable" anymore.
Re:Before Reddit and Digg, there was Fark. Then a user-hosti...
by raverbashing on Monday June 12, 2023 @07:20AM
(#36291695)
- Cache for unlogged users, have a less dynamic front page (let's say 10s cache), that would help a lot
- Cache of most popular topics (again, even a 10s invalidation time) would help
For the logged users you could do something more dynamic, for example, cache the front-page snippets of the main subs + add the ones for the user. And again cache that
(unless the 'new reddit' makes this harder, to which I would say - well deserved! ;) )
The feeds are definitely not cacheable (except for maybe on a per user basis with a low ttl). Popular and all are never the same upon reload. And every user is going to have a different combination of subreddits. Those feeds have to be generated on the fly. Most of the data is too dynamic and ever-changing to cache effectively.