-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Do not load articles in blog layout if configured #46542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.4] Do not load articles in blog layout if configured #46542
Conversation
|
@brianteeman That's not a problem. The issue of this PR is tied to the Category Menu Item. The issue resides on the fact that, when putting 0 on all article fields in the Category Menu Item, it will display 0 articles (this is already the case, so no inconsistency here, it already always worked like this) but it still queries in the background the data from all articles, causing super slow loading despite showing the intended 0 articles at the end. @joomdonation Thanks, I'll test this and report back. |
|
I have tested this item ✅ successfully on 675eb71 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46542. |
|
Sorry you missed the point I was trying to make. In the module 0 = everything but in the component 0= nothing |
No, I perfectly got your point. But your point has nothing to do with this PR or the issue is trying to fix. |
|
Fair enough |
|
I have tested this item ✅ successfully on 675eb71 I turned on Debug, I had expected to see fewer queries but I got the same amount with or without the PR: (I assume that's fine, just thought I'd mention it just in case). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46542. |
Yes. The queries should be fewer because we do not have to query database to get articles data. In my sample setup, before the change, there is 51 queries. After the change, only 42 queries (but my local site contains mix of things, not just fresh Joomla installation |
|
I have tested this item ✅ successfully on b6b868c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46542. |
|
I have tested this item ✅ successfully on b6b868c In my case, still the same results BEFORE and AFTER applying the PR and clearing cache. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46542. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46542. |
|
✅ Final test before merge with JBT (which has 'Debug System' and 'Log Almost Everything' on by default)
|
|
Thank you @joomdonation for your contribution. Thank you @brianteeman for supporting. Thank you @AndySDH and @exlemor for the repeated testing. |
|
Thanks to all :). And congratulate @AndySDH finally have the issue fixed :D |

Pull Request for Issue #46447, #18529 .
Summary of Changes
At the moment, for Category Blog menu item type, Joomla still loads articles if total number of articles configured for that menu item = 0. This PR just fixed that wrong behavior, see the linked issues to understand more details
Testing Instructions
Actual result BEFORE applying this Pull Request
Works, but Joomla still query database to get articles when it is not needed, thus cause potential performance issue
Expected result AFTER applying this Pull Request
Works, no unnecessary query executed anymore if the menu item is configured to not show any articles
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed