Commit Graph

8 Commits (f855d645b2762054ceafd4e3ca57fc7436cadbc9)

Author SHA1 Message Date
Eugen Rochko 1d0321fc45 Fix pt translations, improve pre-cache queries, removing will_paginate
from accounts/tags because it's a terribly inefficient way to paginate
large sets of data
Eugen Rochko 7e90772c92 Unify collection caching code
Eugen Rochko 8a3745a4df Remove stale entries from cache results
Eugen Rochko cf912e01fd Implement includes caching for timelines APIs
Eugen Rochko 5c78547198 More query optimizations
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko b13e7dda1f API pagination for all collections using Link header
Eugen Rochko 9aecc0f48a Move timelines API from statuses to its own controller, add a check for
resources that require a user context vs those that don't (such as public timeline)

/api/v1/statuses/public   -> /api/v1/timelines/public
/api/v1/statuses/home     -> /api/v1/timelines/home
/api/v1/statuses/mentions -> /api/v1/timelines/mentions
/api/v1/statuses/tag/:tag -> /api/v1/timelines/tag/:tag