Create some categories.
View frontend pages that contain many links to categories.
An OK number of queries.
Too many duplicate queries.
Using the old JCategories::getInstance()
method here eliminates duplicate queries:
Labels |
Added:
?
|
Frontend performance in J4 is really crap because of this
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-30 07:06:25 |
Closed_By | ⇒ | SharkyKZ |
See PR #27710 for adding caching to routers only .
The problem is because CategoryNode is a mutable class (i.e. we can change the data in it without saving) it shouldn't be cached in certain cases. It's on of those super tricky things where there's no obviously correct answer :/