Usermanager takes ages to load, and eventualy time out. - Page 2 Usermanager takes ages to load, and eventualy time out. - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Usermanager takes ages to load, and eventualy time out.

Started by JohannM, March 21, 2015, 03:23:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

Quote from: Phill Luckhurst on March 23, 2015, 10:25:21 PM
Could possibly be added as a hidden config option for 1.5.x then included in 1.6.

I'm happy to add this (expecting some spare time in the next 2 weeks). Could somebody please tell me the exact solution? Is there anything else to do expect the mod in reply #14?

gmc

Quote from: Αndré on May 31, 2015, 09:29:17 PM
I'm happy to add this (expecting some spare time in the next 2 weeks). Could somebody please tell me the exact solution? Is there anything else to do expect the mod in reply #14?
Actually reply 15 is the correct code.
Base on a hidden config var to use existing code (show picture count and total size for each user) or new code (bypass pic count and total size)
The code eliminates the join and forces a 0 to be returned for pic count and size so array keys will exist when referenced later.

Thanks... As my free time vanished for the moment.
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Αndré


gmc

Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Αndré

Added hidden feature to hide file count and disk space usage in user manager to increase performance in SVN revision 8786.

Additional to Greg's code, I also removed the corresponding columns in the user manager if the config option is enabled.

TODO:
- cpg1.5.x: add new config option to the hidden features plugin Done in SVN revision 8788, plugin version 1.1
- cpg1.6.x: turn hidden feature into official feature (add new config option to admin.php, new language string to english.php and explanation to docs, update changelog "added hidden feature" -> "added config option") Done in SVN revision 8793

Optional:
- cpg1.5.x and cpg1.6.x: in usermgr.php, disable code parts for file count, disk space usage and group quota calculation if config option is enabled