[6.1] Lazyload all plugins except compat plugin#46862
[6.1] Lazyload all plugins except compat plugin#46862tecpromotion merged 5 commits intojoomla:6.1-devfrom
Conversation
|
I have tested this item ✅ successfully on c11d811 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46862. |
|
I convert this to draft because there are some language autoloading issues. |
|
You discovered a bug in com_scheduler. joomla-cms/administrator/components/com_plugins/src/Model/PluginsModel.php Lines 184 to 195 in 508ac3d |
|
depends if you see it a bug, actually the plugin is created and loads the language |
|
Plugin should load only language that need for its runtime, nothing more. |
|
@HLeithner System Logout plugin destroys own cookie in constructor. To be honest, I don't understand how this cookie can help with plugin behavior:
This cookie is only destroyed and set in this plugin and seems like not used anywhere else in the code. Won't the logic be broken if constructor execution is delayed? |
I'm not sure what this cookie does... I remove lazyloading from the plugin for now. the commit messages from the svn was "[#23208] Logout from edit screen gives 403" earlier it registered an error handler for 403 I looked at the PR when JError has been removed. @laoneo might remember if the functionality has been recreated somewhere else. (redirect logout users if they are in a protected area) |
|
is this relevant #43638 |
yes a Pull request for 7.0 would be good to remove this plugin |
|
@HLeithner don't think so that the functionality has been recreated somewhere else about the error stuff. But not sure. |
|
@HLeithner Just curious, did you measure the performance changes with this PR? |
|
didn't measured it yet, also performance might not be the main point, we reduce memory footprint, especially when languages are not loaded. |
|
To get more testers and 3rd party devs can test this, we've merged this for the beta1 release. |

Based on the Pull Request #45062 .
Summary of Changes
Add lazy loading to all plugins
Testing Instructions
Test if joomla still works, every situation where a plugin is in the game.
It's unlikely that all cases can be tested. Deeper testing will likely be done in beta1 to rc1.
Also code review should be done.
Actual result BEFORE applying this Pull Request
Works
Expected result AFTER applying this Pull Request
Still works, with less memory usage and less cpu cycles (fast).
Link to documentations
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed