? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
24 Aug 2019

Summary of Changes

Adds prepared statements and cleans up queries in Joomla\CMS\Helper\ModuleHelper.

Testing Instructions

Create some modules with all sorts of different settings, e.g. different states, publishing times, menu assignments, languages, etc. Test that modules are rendered only when they should be, i.e. works like before.

Expected result

Works like before.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 24 Aug 2019
avatar SharkyKZ SharkyKZ - change - 24 Aug 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2019
Category Libraries
avatar SharkyKZ SharkyKZ - change - 24 Aug 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 24 Aug 2019
e3cbb38 24 Aug 2019 avatar SharkyKZ CS
avatar SharkyKZ SharkyKZ - change - 24 Aug 2019
Labels Added: ?
a2e7ec8 24 Aug 2019 avatar SharkyKZ CS
avatar alikon alikon - test_item - 25 Aug 2019 - Tested successfully
avatar alikon
alikon - comment - 25 Aug 2019

I have tested this item successfully on a2e7ec8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26015.

avatar richard67 richard67 - test_item - 25 Aug 2019 - Tested successfully
avatar richard67
richard67 - comment - 25 Aug 2019

I have tested this item successfully on a2e7ec8

Code review + test if modules still work as before.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26015.

avatar alikon alikon - change - 25 Aug 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 25 Aug 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26015.

avatar HLeithner
HLeithner - comment - 25 Aug 2019

Thank you for making Joomla a bit more secure and optimized.

avatar HLeithner HLeithner - change - 25 Aug 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-08-25 18:07:22
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 25 Aug 2019
avatar HLeithner HLeithner - merge - 25 Aug 2019
avatar Stuartemk
Stuartemk - comment - 25 Aug 2019

Hello, is it possible to do the same in the menus (to create a cache id and filter by language) ?. Joomla is a great CMS, but in a real world one of the biggest limitations is that it makes no sense that it has the possibility of being multilingual if that feature makes it unfeasible to navigate because the query is extremely slow in a large system, say where There are 5 menu levels in the first level, 20 submenus of the second level per menu and 20 submenus of the third level per submenu, and also repeated by say 5 or 6 languages, the query is around 6000 and that is not practical, You should only make the query for the displayed language and the best thing is that the query will be done in ajax in the sub-levels to avoid consulting everything together and the worst thing is that it loads the total result, of the almost 6000 menus, that is a bad design. How many pages with 1 or two first level menus and 1 or 2 sub-levels deserve to be in 5 languages? Basically none, if a platform has multilanguage capability it is for a robust construction, but it would not make sense, or in its case a less robust platform like WP would be used.
@SharkyKZ I have seen your contributions and it seems to me that you can possibly give an efficient and effective solution to this situation that at the time was seen in issues #13054 #13054 but that never really was solved, it was tried to repair with indexes but I understand that it goes beyond, first of all the problem of how the queries are made (queries). I am another Joomla user, I am not the one who started #13054, but the same problem arises. Please apologize in advance if this is not the right place to request this. Thank you all for your great work.

@alikon @richard67 @HLeithner @joomla-cms-bot

avatar richard67
richard67 - comment - 25 Aug 2019

@Stuartemk I don't understand how your post is related to this PR here.

avatar Stuartemk
Stuartemk - comment - 25 Aug 2019

It seems to me that to do (id cache) and (filter by language) as if you did here, it would be possible to make the menus. @richard67

avatar SharkyKZ
SharkyKZ - comment - 25 Aug 2019

@Stuartemk it's best that you open a new issue for this.

avatar Stuartemk
Stuartemk - comment - 20 Sep 2019

menu_overload

This overload the server, troubleshooting High Time to First Byte (TTFB), slow laod

avatar SharkyKZ
SharkyKZ - comment - 22 Sep 2019

@Stuartemk Please open a new issue at https://issues.joomla.org so this doesn't get lost.

Add a Comment

Login with GitHub to post a comment