Significant Cornerstone Lag

Hi Christian - thanks for the quick reply. The site that I am speaking of is www.cvcyouthblog.org and it is running 6.4.6

Credentials coming in a secure note. Thanks!

Hi Joe,

I checked and your Wordpress is updated in which PHP requirement would be 7.2 and up. Please upgrade your PHP version to 7.2 first then we’ll continue. Please contact your hosting provider for the upgrade, the process may cause issues if you configured while other software are old. That’s so they could fix incompatibilities due to upgrade.

Thanks!

Hi Rad,
PHP is updated to 7.2

Joe

Hi Joe,

Are you still having issues after the update?

I check and it seems to be working fine on my end now.
I tried to edit some text elements in your site and didn’t experience any Lag.
Can you try editing your page in Chrome Browser.

Thanks

Yes, I am still experiencing the lag. It has gotten slightly better, but for instance, I typed in some text just before I started this post and it still has not shown up in the live editing window. I am editing in Chrome - the browser that I always use. Should I try something else, perhaps?

Hi Joe,

Thank you for all the information. I added a new page and tested the case with one Text element and it is a little bit slower than a normal view would be. Unfortunately, I could not find why this is happening. Now, the problem is that if the count of elements goes up the slowness will be higher and higher.

This is not the case in my installation both in my local and live versions. This shows that a problem other than the internal code of the Page Builder is the problem cause. In general, there are two reasons for such cases:

  • The bad quality of the server. That means even if you make the settings up and proper the quality of the machine behind the server matters, how much CPU and RAM usage are on hand and, … The only way to test this case it to move your website to another server or your local machine and test the speed. Click here for the official documentation of WordPress on how to move the website.

  • The 3rd party plugins also might cause such an issue. The way to test that is to disable all the plugins except Cornerstone and check the case. As you have the cache plugin make sure that you clear the cache and check the website with another browser.

I personally have a good experience with Chrome, but you are right in some fringe cases, the extra extensions of the browser can cause problems. You are welcomed to test the case with other browsers and another machine on that.

Finally, you do not need to wait for the preview to show the text changes to save your changes and check the case on the front end of the website. So in worst case scenario you can still save the page before having the preview updated.

Thank you and regards.

Thank you so much for the insight. Regarding the save issue, the lag actually affects the saving capabilities. When I click the “save” button, the green process line moves to about 90% and then can take 3-4 minutes to complete the save. I will check some of the other items that you mentioned and if I find the culprit, I will let you all know. Thanks for the help.

You are most welcome.
Please let us know how it goes.

Just to wrap things up, I found that the issue was the I was maxed out on my space on my server. This was causing the server to not respond. All in back to normal now. Thanks for the help - in the process I optimized my site significantly!

You’re welcome. Glad to know you were able to figure out what was causing the issue.
Have a great day! :slight_smile:

Hi team,

I have done just about everything that I can think of to fix this problem. I went in at the server level and upgraded my storage, I added gzip coompression to everything, and I went through all of the steps listed above. I am still experiencing this lag - it gets worse and worse the more I work and it is simply not efficient enough for my workflow. What should take me 10-15 minutes takes over an hour to accomplish. Can someone help me dig into this issue with Cornerstone?

Hi @jlevitt,

Are you on shared hosting? It sounds the performance is being throttled. And may I know the last changes or action you’re doing before the performance throttling?

If you’re just editing a text content then the host is just probably throttling the number of requests that you could do. For that, please don’t do the editing exactly on the text element, instead, do it in any text editor (like notepad or wordpad) and then just copy and paste the content to the text element.

Thanks!

No, I am not on shared hosting. I will try to do the copy and paste and see if it works.

Sure, please let us know if it improves the building process. Thanks!

The copy and paste works like a dream! What would I say to my web host to resolve that issue?

I am having the same issue and was about to open a new support ticket for it.

I have narrowed the issue down to the Text elements in Cornerstone, both classic and new, making calls/requests back to the server constantly that if they don’t get a response then the page cannot Save. Other elements that I tested do not have this issue, only Text elements. Only after the server has responded can the Save complete.

Can you tell us what your code is doing for these Text elements so that we can ask our hosts to allow for this processing? I am on a shared hosting service with inmotionhosting.com and any help from the developers in specific requirements for Cornerstone can help us overcome the server-side issues.

Or, can you optimize the code or make the calls differently so that this doesn’t happen?

I don’t see copy/pasting as a workaround because it happens with even a single text entry/paste. Each new edit into a Text element would take minutes to update and then save, even the initial paste.

Thanks,
Michael

Hey guys,

The resource that is mostly used when you type in a text element is the CPU. That is the one that is commonly maxing out like in this thread: https://theme.co/apex/forum/t/server-resources-randomly-max-out/51457/6?u=christian_y

I’m not sure if controlling WordPress Heartbeat will work but it might be worth a try. See https://theme.co/apex/forum/t/major-performance-issue-with-admin-ajax-php/45589/2?u=christian_y

Other than that, you to upgrade your hosting plan for a higher CPU power.

Regretfully, we have not specific requirements for Cornerstone other than the suggested 256M memory limit. It’s because Cornerstone works even in free web hosts. Also, WordPress site requirements vary on the actual plugins and/or scripts in your site and not just Cornerstone.

Optimization of the process is certainly in our developers list but we could not provide an ETA as to when things will be improved.

In addition to writing your post separately in an external text editor, only allow one user to create or edit a page at a time.

What happens when you type a character in a text element is it sends data to the server and the server brings it back in the preview. Here’s a comment from our core developer in a similar thread:

Thanks.

Hello,

I was in parallel conversations with my hosting provider, inmotionhosing, and they alerted me to something. I was reading my PHP version from a cPanel system information view that clearly said it was on version 7.2. However, in reality, via phpinfo.php I saw that it was running version 5.63. Doh.

I knew that the php version needs to be 7.2+ and I thought it was, only to find it wasn’t. Once corrected I can say that Cornerstone is working as expected, including text elements.

Thanks for your help and getting me in the right direction.

Regards
Michael

Glad to hear everything is working fine now.

If you need anything else feel free to create another ticket.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.