HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
GNU Affero General Public License v3.0
1.99k stars 379 forks source link

(Update) Improve footer performance #4198

Closed Roardom closed 1 month ago

Roardom commented 1 month ago

This function was ran in every view. The problem is for every partial, it was ran again. On pages like /mediahub/persons/x, this function was called 4000+ times because of all the partials, causing redis cache hits to use up more than 75% of the processing time to return the response. Fix by only calling it in the footer explicitly.