-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow save times with Solspace Calendar and lots of events #989
Comments
As a test, if you go to SEOmatic -> Plugin Settings -> Advanced and turn OFF the Regenerate Sitemaps Automatically does the slowness continue? |
That was it. Turning off that setting resolved the slowness. In looking at the docs, it sounds like we'd either want to makes sure |
Well, I think there was a regression here somehow... either with SEOmatic or with Craft. It should not be super-slow just regenerating a sitemap, it should run as a background queue process. Does this happen to you only in local dev, or in what environments does it happen? How are your queue jobs being run? More context here: https://nystudio107.com/blog/robust-queue-job-handling-in-craft-cms |
It almost sounds to me like the entire request is waiting for it to finish regenerating the sitemap for the Events channel, which is not what should be happening. |
This happens both locally (Nitro) and on our production server (ArcusTech). In both cases, we have I too wonder if some regression has happened. We did not have this issue prior to upgrading from Craft 3.4 to 3.7 with basically the same number of events in the system. |
How are your queue jobs being run? |
Just using Craft's default of someone accessing the CP. |
Okay so they are run via web request, that explains it a bit. Addressed in: 9b81709 You can try it now by setting your semver in your "nystudio107/craft-seomatic": "dev-develop as 3.4.14”, Then do a |
I've updated locally to the So it doesn't look like that change necessarily did anything when sitemap regeneration is enabled. |
That's very odd, because the queue job should not be run automatically anymore. |
Here is the results of various config settings when testing locally (Nitro). Regenerate Sitemaps Automatically: enabled Regenerate Sitemaps Automatically: enabled Regenerate Sitemaps Automatically: disabled Regenerate Sitemaps Automatically: disabled |
What's happening, I think, is Craft is trying to run the queue job on the current request, so the Save doesn't finish until the sitemap queue job finishes rendering the queue (which can be quite lengthy) ...which is not how it used to work. |
@caseyreid can you confirm for me that https://github.com/nystudio107/craft-seomatic/blob/develop/src/helpers/Queue.php#L56 Reason I ask is that I had someone else who was having a problem similar to yours where the above change fixed it for them. |
I'm fairly confident that this has been resolved in 3.4.14 -> https://github.com/nystudio107/craft-seomatic/releases/tag/3.4.14 If not, please let me know @caseyreid and we can screen share to diagnose. |
Describe the bug
We're having an issue with saving and editing Calendar entries since we recently upgraded to Craft 3.7 and the latest version of Calendar and SEOMatic. We upgraded from Craft 3.4.
The issue is that it takes an extremely long time for a Calendar event to save, either when being created for the first time or when being edited in the control panel. We're talking at least 1-2 minutes after hitting the save button. Oftentimes this causes timeouts and out of memory errors for content editors.
This occurs in a single calendar called "Events" which has 2000+ event entries. It does not occur in a newly created calendar without any events, when a new event is created or saved.
In order to isolate the issue, I disabled various other plugins on the site and then performed the event save operation. When SEOMatic is disabled, the save operation performs quickly, and as expected. When it is enabled, that is when the slow save times happen.
That lead me to think that perhaps SEOMatic operations are taking an abnormally long time when event entry types are being saved, when lots of events are in the system.
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
Saving an event entry should save in a reasonable amount of time when SEOMatic is enabled.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: