Skip to content
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

Optimizing mod_login helper #6034

Closed
wants to merge 3 commits into from
Closed

Optimizing mod_login helper #6034

wants to merge 3 commits into from

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Feb 9, 2015

We already have loaded all menu items. We don't need to look up an existing menu item again. If JMenu does not return this item, it either does not exist or it is unpublished or not accessible for the user. The router also makes sure that all parameters of a menu item are correctly stripped. There is no need to differentiate between SEF and non-SEF URLs.

How to test

  • See current behavior of mod_login
  • Apply patch
  • Notice that performance improves and nothing else changes.

@810
Copy link
Contributor

810 commented Feb 9, 2015

Fatal error: Class 'ModLoginHelper' not found in /home//domains//public_html/modules/mod_login/mod_login.php on line 17
j3.4 b2

Mhh other patches same issues, maybe my test site is broken.

@brianteeman
Copy link
Contributor

@810 what were you doing to get that error. I couldnt replicate it myself


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

@810
Copy link
Contributor

810 commented Feb 9, 2015

@brianteeman i applied patch with patchtester, on a ssl website.

@test
With patch:
with
Without patch:
without

@brianteeman
Copy link
Contributor

Strange as I cannot get that error message (perhaps because I am not on an
SSL site?)

On 9 February 2015 at 23:37, Jelle Kok notifications@github.com wrote:

@brianteeman https://github.com/brianteeman i applied patch with
patchtester, on a ssl website.

@test https://github.com/test
With patch:
[image: with]
https://cloud.githubusercontent.com/assets/876623/6118345/dcabcf86-b0bc-11e4-8d0d-5c675272b35e.jpg
Without patch:
[image: without]
https://cloud.githubusercontent.com/assets/876623/6118354/eeb68bbc-b0bc-11e4-991e-28baf24f7f33.jpg


Reply to this email directly or view it on GitHub
#6034 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

@ceus1984
Copy link

Indeed, nothing changes but the performance does not get much better either

@msdevcon
Copy link

@test
Still works fine, but no big difference.

@Hackwar
Copy link
Member Author

Hackwar commented Mar 14, 2015

It is 50 lines of code less. Yes, the performance improvement is negligible.

@coolcat-creations
Copy link
Contributor

Works normal :-)


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

@waader
Copy link
Contributor

waader commented Mar 14, 2015

@test works for me. Thanks!

@zero-24
Copy link
Member

zero-24 commented Mar 14, 2015

RTC thanks for testing!


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

@brianteeman brianteeman added the RTC This Pull Request is Ready To Commit label Mar 14, 2015
@phproberto phproberto added this to the Joomla! 3.4.1 milestone Mar 15, 2015
@phproberto
Copy link
Contributor

Merged. Thanks!

@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
@Hackwar Hackwar deleted the patch-28 branch January 6, 2016 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants