Support

Home Forums Event Espresso Premium Speed of EE and Notices

Speed of EE and Notices

Posted: April 17, 2020 at 1:10 pm


Jarred

April 17, 2020 at 1:10 pm

Hey guys, my site admin has started running very slow the past few weeks. I installed a “Query Monitor” to try and see what takes so long to load and EE is at the top 3 each time.

Also, the notices that EE sends. I click dismiss but then they keep showing up. I dont want to ever see any special notices on my wp admin dashboard from EE becuase I already subscribe to their blog posts so I am updated when thee is special news. Im trying to get rid of anything and everything I can because working on the backend takes FOREVER all of a sudden.

Are there any tips you suggest for a faster WP admin? I use cloud hosting with Siteground.


Josh

  • Support Staff

April 17, 2020 at 3:26 pm

Hi Jarred,

When things started getting slow, just before that, were there any new add-ons added or were there changes to any settings in Event Espresso?


Jarred

April 18, 2020 at 2:22 pm

I haven’t added any new addons recently but will be adding new ones.

I have done some more research, and only two things i have found that might work is the plugins “Disable all Updates” , when that is activated it cuts the load time down in exactly 50% for entire wp admin. I do get errors on query monitor about ajax issue since the constant update notice. But Im hoping that doesn;t cause an issue for cron jobs for actual front end things.

And I can disable that plugin to check for updates whenever I want. So thats one fix. https://www.screencast.com/t/rfh7jZQl7

Second, I read something about “Redis Object cache?” But I did not try that one because I could not understand what they were actually saying to do.

I just know that with a lot of events and now adding woo to the domain too that the load times are getting longer so unless you think the “Disable all Updates” plugin is not a good idea, I might stick to that.


Jarred

April 18, 2020 at 2:24 pm

One more thing, does anyone happen to know how to make this work? Would that speed up WP Admin with Event espresso? https://www.screencast.com/t/BMxoMRcuWGv


Tony

  • Support Staff

April 20, 2020 at 8:18 am

Hi Jarred,

The error you are getting means you have something like:

define('WP_AUTO_UPDATE_CORE', false); (or set to true)

In your wp-config.php file.

You don’t need both if using a plugin to manage updates.

So, without the plugin, are you blocking all updates on the site using another method? For example using the constant mentioned above to disable auto-update?

A couple of things stand out in your thread, first:

I installed a “Query Monitor” to try and see what takes so long to load and EE is at the top 3 each time.

You can’t get hung up on this.

Event Espresso is much more complex than the majority of plugins you will run on your site and has to process much more data, meaning it is no surprise that EE shows up as the ‘top’ queries on a site.

I’m not saying there isn’t some issue somewhere, but looking at query monitor and finding EE at the ‘top of the list’ is only half of the picture here.

Also, the notices that EE sends. I click dismiss but then they keep showing up.

They instantly show up again on the next page load or say 24 hours later?

Which specific notices are you referring to?

Second, I read something about “Redis Object cache?” But I did not try that one because I could not understand what they were actually saying to do.

Object caching can not be used with Event Espresso, it basically moves transients out of the database but then EE can’t use them and they are required for it to function.

I just know that with a lot of events and now adding woo to the domain too that the load times are getting longer so unless you think the “Disable all Updates” plugin is not a good idea, I might stick to that.

Have you checked to see which plugins are ‘phoning home’ to check for updates causing the slowdown?

EE should check once every 24 hours or when you click save on General Settings, not on every request.


Jarred

April 23, 2020 at 7:54 pm

Hey Tony, okay I’ve played around with it a little more. I am now using SG optimizer and Autooptimize and WP Rocket.

Sometimes if I test add an event to the cart, then go to registration but decide to add more events to cart, for some reason its not saving those items in the cart. Is there any kind of cookie or something that I can list on a do not cache list so that items in cart will remain in cart.

Second, is there some sort of code in the EE plugin that limits the amount of time an item remains in the cart?

For example, if a customer adds stuff to the cart, then leaves the site , then comes back 1 day later will the items still be there? Or is it 12 hours, 6 hours 1 hour etc..etc. etc.


Tony

  • Support Staff

April 24, 2020 at 4:00 am

Hey Tony, okay I’ve played around with it a little more. I am now using SG optimizer and Autooptimize and WP Rocket.

Ok, but you haven’t answered any of my questions, all of which would be relevant to the speed of your site and most don’t apply to the above plugins.

I’ve not used SG Optimizer, but it apparently follows the no-cache headers we set when EE loads according to this thread:

https://eventespresso.com/topic/issues-with-sg-optimizer-and-event-espresso/

Autooptimize alters how JavaScript loads on your site and often causes issues, here are a couple of examples:

https://eventespresso.com/topic/missing-bookings-from-admin-2/

https://eventespresso.com/topic/referenceerror-cant-find-variable-eejs-2/

With WP Rocket, you’ll need to exclude EE critical pages from caching:

https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/

Sometimes if I test add an event to the cart, then go to registration but decide to add more events to cart, for some reason its not saving those items in the cart. Is there any kind of cookie or something that I can list on a do not cache list so that items in cart will remain in cart.

It will most likely be because you are caching and it will depend on which options you’ve set.

EE already sets no-cache headers, adds cache-busting query strings to checkout and so on, if the caching plugin is ignored those you’re going to run into problems and you’ll need to work through the options to find what is causing it.

Second, is there some sort of code in the EE plugin that limits the amount of time an item remains in the cart?

For example, if a customer adds stuff to the cart, then leaves the site , then comes back 1 day later will the items still be there? Or is it 12 hours, 6 hours 1 hour etc..etc. etc.

It’s the duration of the user’s session, which by default is 1 hour.

You can change it using a snippet like this:

https://gist.github.com/Pebblo/b6e20b03c57efe693bd86ebcf1b00ce9

However, I don’t recommend increasing it as it will hold ticket placed in the cart for the duration of the session, meaning you can sell out your event for a day without actually selling any tickets at all.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 month ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!