Slow saving and updating listings
This topic contains 14 replies, has 3 voices, and was last updated by Paolo 9 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 4, 2015 at 4:30 pm #62574
When i create a new listing or have to modify one when i click publish or update take such a long time and by that i mean minutes! even when the server load is at 0.
i also see this message all the time,Connection lost. Saving has been disabled until you’re reconnected. We’re backing up this post in your browser, just in case.
I already did some tests and my internet connection is stable, so it is definitely a wordpress/geodirectory issue.
Have you had this problem before?
Any pointers on where or how i can fix the problem?Thanks!
EstebanDecember 4, 2015 at 6:46 pm #62603Hi Esteban,
never seen this before…
What kind of server are you hosting the website on?
Would you mind providing a URL and admin credentials to run some tests?
Let us know,
Thx
January 4, 2016 at 7:44 pm #66560This reply has been marked as private.January 12, 2016 at 2:24 am #67940Hello Paolo!
Did you had a chance to check my previous message?
Please let me know!
EstebanJanuary 12, 2016 at 5:19 pm #68005Hi,
when saving a place from the backend I get this WordPress error:
Connection lost. Saving has been disabled until you’re reconnected. We’re backing up this post in your browser, just in case.
You have close to 600k listings, is that a dedicated server?
For such a big dataset MySql should be optimized and fine tuned by a PRO, or it risks to fail. I’ve asked to Stiofan to have a look and tell us if he can see anything else that could be causing this.
He’ll let you know asap.
Thanks
January 12, 2016 at 5:23 pm #68007p.s. sorry for the late reply, I’ve been missing some notifications and working hard to recover 🙂
January 14, 2016 at 10:28 am #68339Sorry my reply failed to post last night, here it is:
Hello,
it seems to be a combination of many listings and many categories and many locations, when a listing is saved we rebuild the category term counts per location so this is a very very big loop in your case.
I have added a task to tackle this in different ways for big sites but for now this is the temp solution i can reccommend.
In your theme functions file near the top i have added the following lines
//disable term update on listing save remove_action( 'geodir_after_save_listing', 'geodir_term_post_count_update', 100);
This will disable the term count update, if you add/remove many listings or change categories, i would suggest to comment out that line and then save a listing then uncomment it again to update your term counts. Y
Your place save times are now only a few seconds with this line added.Thanks,
Stiofan
January 25, 2016 at 6:07 pm #111205Hello guys! thanks for all your help, you rock!
The problem of slow saving and updating is fixed.
But sadly now i have another problem.
Every where i try to see places in the directory i get the “No listings found” message in the homepage. There are no Popular places or Latest Places, i’ve tested all possible options and the only way to get some listings is activating the Near me option.
Any ideas?
Thanks!
EstebanJanuary 25, 2016 at 6:18 pm #111207Thanks for letting us know 🙂
January 25, 2016 at 6:20 pm #111208Is that a known issue for you guys?
January 25, 2016 at 6:37 pm #111212it seems to be a combination of many listings and many categories and many locations, when a listing is saved we rebuild the category term counts per location so this is a very very big loop in your case.
less than 0.1% of websites using our plugin should be in this case…
January 25, 2016 at 8:18 pm #111328Ok i understand, did you guys see my question about the “No listings found” in my previous message?
January 25, 2016 at 10:02 pm #111395This reply has been marked as private.January 26, 2016 at 5:12 pm #111837I see what you mean, i’ll check and fix it and i’ll let you know how it goes.
Thanks a lot for your help, i really appreciate it.
EstebanJanuary 26, 2016 at 5:14 pm #111839You are welcome,
keep us posted 🙂 -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket