User tests: Successful: Unsuccessful:
Pull Request for Issue #20698
Cache JTable records loaded by JUser class (Joomla\CMS\User\User)
Show only 2 duplicates queries
6 duplicates queries are reported
None
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Yes
i was wondering if these queries should be cached or not
and i can not say that i am sure of this PR,
plus it is not like that one would duplicate same user (via new JUser and load it) inside a loop or anything similar
so i ll close this
still it would be nice to remove these "duplicates queries" from showing up in the debug report
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-09 06:13:18 |
Closed_By | ⇒ | ggppdk | |
Labels |
Added:
?
|
To be honest I don't know what to think of this.
JTable::load()
doesn't cache, anything relying on it shouldn't either. If you're loading a record fresh from the database in this way you don't want cached data, especially if the data changes during the request cycle after what puts the record in the cache. Additionally, there is no way to force bust cache.Duplicate queries in and of itself is not an issue. Why you get duplicate queries is a bigger issue.