Slow saving and updating listings

This topic contains 14 replies, has 3 voices, and was last updated by  Paolo 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #62574

    Esteban Barrientos
    Expired Member
    Post count: 11

    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!
    Esteban

    #62603

    Paolo
    Site Admin
    Post count: 31211

    Hi 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

    #66560

    Esteban Barrientos
    Expired Member
    Post count: 11
    This reply has been marked as private.
    #67940

    Esteban Barrientos
    Expired Member
    Post count: 11

    Hello Paolo!
    Did you had a chance to check my previous message?
    Please let me know!
    Esteban

    #68005

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    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

    #68007

    Paolo
    Site Admin
    Post count: 31211

    p.s. sorry for the late reply, I’ve been missing some notifications and working hard to recover 🙂

    #68339

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sorry 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

    #111205

    Esteban Barrientos
    Expired Member
    Post count: 11

    Hello 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!
    Esteban

    #111207

    Paolo
    Site Admin
    Post count: 31211

    Thanks for letting us know 🙂

    #111208

    Esteban Barrientos
    Expired Member
    Post count: 11

    Is that a known issue for you guys?

    #111212

    Paolo
    Site Admin
    Post count: 31211

    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.

    less than 0.1% of websites using our plugin should be in this case…

    #111328

    Esteban Barrientos
    Expired Member
    Post count: 11

    Ok i understand, did you guys see my question about the “No listings found” in my previous message?

    #111395

    Paolo
    Site Admin
    Post count: 31211
    This reply has been marked as private.
    #111837

    Esteban Barrientos
    Expired Member
    Post count: 11

    I 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.
    Esteban

    #111839

    Paolo
    Site Admin
    Post count: 31211

    You are welcome,
    keep us posted 🙂

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount