mtnpavlas
  mtnpavlas
Gold Member
  Saturday, 11 April 2015
  6 Replies
  1.7K Visits
0
Votes
Undo
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.
10 years ago
·
#146078
0
Votes
Undo
Hello,

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

Thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

10 years ago
·
#146079
0
Votes
Undo
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?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

10 years ago
·
#146080
0
Votes
Undo
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
·
#146081
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

10 years ago
·
#146082
0
Votes
Undo
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
·
#146083
0
Votes
Undo
I'm adding it to the core - but with a limit of 200. In time I need to use JSON/AJAX user lookup.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.