Every time that you call: $session = JFactory::getSession()->getData();
__users , __usergroupsjust enable debug plugin and look at the duplicate queries to DB tables:  __users , __usergroups
No duplicate queries when calling:
JSession::getData()
Duplicate queries because current user is loaded again ...
JSessiongetData uses clone() to return $this->data, thus you get
JSession::getData()
clone($this->data)
unserialize(...)
JUser::__wakeup()
...
JTable::load(...) // So currrent user is loaded againJ3.8.8
Related PR was #20697 , but probably was wrong way to fix this
@mbabker , i closed the other PR as it was probably wrong way to address this, and instead i have opened this issue
| Labels | Added: 
? | ||
| Status | New | ⇒ | Discussion | 
| Category | ⇒ | com_users SQL | 
| Status | Discussion | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-09 08:24:30 | 
| Closed_By | ⇒ | ggppdk |