By mtnpavlas on Saturday, 11 April 2015
Replies 6
Likes 0
Views 1.7K
Votes 0
Hi, the new event form and edit form take over 20 seconds to load - it started just fine 4 months ago when we launched the site and has gotten progressively worse, now to an unbearable point.
Anything I could check on? It seems the initial GET is what takes the longest (see attachment). I don't have this issue with other content types (e.g. blog), some of them are very complex forms (with 20-30 fields) and take around 3-4 seconds.

URL: https://www.evergreenmtb.org/calendar
Joomla: 3.4.1
jEvents: 3.2.9

Thank you for any pointers.
Hello,

Do you have a lot of users who can create events by any chance?

Thanks
Tony
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
If you do then try this code change - at line 308 of administrator/components/com_jevents/views/icalevent/view.html.php insert this code
			// get list of creators - if fewer than 100
if (count($users)>100) {
return null;
}


before
			$userOptions[] = JHTML::_('select.option', '-1', JText::_('SELECT_USER'));
foreach ($users as $user)
{
$userOptions[] = JHTML::_('select.option', $user->id, $user->name . " ( " . $user->username . " )");
}

Does that help?
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
As always, lightning-fast response and spot on - thank you so much, guys. (Yes, we have currently 6800 users who are able to add events, though only a handful of them do.) This has brought the event edit form load time to 3-4 seconds.

Is this something you'll add to your code or do I need to change this after each upgrade?
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I would also advise if you have 6800 users who can create events then the query is quite large to fetch all the users data. It would be best to change the creation level if only a handful of users now add events so only they show up.

You may also find, if you are a super admin it will be slower as it loads the full list of event creators, but just normal event creators won't have the option of selecting who the creator is, only super / global editors and so it the list isn't generated.

Thanks
Tony
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Ha, good point, Tony, about the admin vs. registered - the slowness was reported by folks in the user group Manager or Super Admin.

I need to leave all 7K users to be able to add events - I made the comment that only a handful of them adds them in reality but I can't limit the others at the moment 'cause they may decide to organize bike rides all of the sudden.

So again, I'm assuming I need to add this custom piece of code if it gets overwritten by an update, i.e. it won't get added to your core, yes?

Thanks a million
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm adding it to the core - but with a limit of 200. In time I need to use JSON/AJAX user lookup.
·
10 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post