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

Cleaning up the checks in Modules renderer for performance #6032

Merged
merged 1 commit into from
Feb 17, 2015

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Feb 9, 2015

See #5996. This shuffles around the checks in the modules renderer to bail out as soon as possible for the module editing. The only functional change is, that module editing with this requires that the user is logged in regardless of the permissions set. The situation that an unauthenticated user is allowed to edit modules in the frontend, is VERY uncommon.

How to test

  • Install current staging
  • See times of beforeRenderModule module in debugging
  • Apply patch
  • See times have cut down to about a tenth of the original value

Make sure that you are not logged in when doing this. There should be no change in performance if the user is logged in.

@brianteeman
Copy link
Contributor

@test MASSIVE improvement thanks

before

screen shot 2015-02-09 at 16 32 45

after

screen shot 2015-02-09 at 16 32 55


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

@brianteeman
Copy link
Contributor

Hit post too early. As you can see there are no duplicate queries now. So the queries take 3 second less


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

@dgrammatiko
Copy link
Contributor

@test ok. I also agree to set front end editing default value to disabled

Multilingual (en, gr) default install data
Before:
screen shot 2015-02-10 at 12 48 56

After:
screen shot 2015-02-10 at 12 49 38

@infograf768
Copy link
Member

@test
Done on my multilingual test site, home page default site language:
Guest
Before 6032:

before6032

After 6032

after6032

After but LOGGED as REGISTERED USER:

6032registered

After but LOGGED as REGISTERED USER after switching to French Home page:

registeredswitch

After logging out on same French Home page:

logingoutfrench

Switching to Italian Home page (still as guest)

switchitalian

Switching to German Home page (still as guest)

switchinggerman

Switching to French Home page (still as guest)

switchfrench

NOTE: French has more menu items (+11) and one more module (Archived)

@zero-24
Copy link
Contributor

zero-24 commented Feb 16, 2015

Thanks @Hackwar i can't do more than move to RTC! Thanks for coding and testing here!


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

wilsonge added a commit that referenced this pull request Feb 17, 2015
Cleaning up the checks in Modules renderer for performance
@wilsonge wilsonge merged commit 8346518 into joomla:staging Feb 17, 2015
@wilsonge
Copy link
Contributor

Merged. Thankyou very much Hannes!

@wilsonge wilsonge added this to the Joomla! 3.4.0 milestone Feb 17, 2015
@Hackwar Hackwar deleted the patch-26 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

7 participants