]> BookStack Code Mirror - bookstack/commit
Reduced the memory usage, db queries and cache hits loading revisions
authorDan Brown <redacted>
Wed, 10 Aug 2022 16:50:35 +0000 (17:50 +0100)
committerDan Brown <redacted>
Wed, 10 Aug 2022 16:50:35 +0000 (17:50 +0100)
commit031c67ba58923872a1a6e8cd5bbae593b8e87377
treec83c99887d7e3173db64b6443e6265b12a72cd16
parent764489e30bea99830f04bcee1bd479c6e62d3d7a
Reduced the memory usage, db queries and cache hits loading revisions

Updated revision listing to only fetch required fields, massively
reducing memory usage by not loading content.
This also updates user avatar handling to effectively cache the avatar
url within request to avoid re-searching from cache, which may improve
performance of others areas of the application.
This also upates handling of the revisions list view to extract table
row to its own view to break things down a bit.

For #3633
app/Auth/User.php
app/Http/Controllers/PageRevisionController.php
resources/views/pages/parts/revision-table-row.blade.php [new file with mode: 0644]
resources/views/pages/revisions.blade.php