• Hello,
    I have a problem with slow post editing after clicking on “Update”. It takes around 15 seconds, while it should be 1-2 s.

    View post on imgur.com


    I have 22000 posts and I’m updating posts constantly using automation tool (bot). Also creating new posts takes the same amount of time.
    Do you have any ideas how to fix this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator James Huff

    (@macmanx)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter r3crac

    (@r3crac)

    I have deactivated all plugins and changed theme to Twenty Twenty. There’s no change – posts are still updating for a long time (10-15 seconds for short posts). What can I do now?

    Moderator James Huff

    (@macmanx)

    Is the front of the site also operating slow?

    Can you check from a different device as well?

    Thread Starter r3crac

    (@r3crac)

    Website is working fast through Cloudflare and normally when I’m logged in (without cache). I can send you URL via private message, but I’m not sure where is that option here.
    I will send a screenshot from gtmetrix:

    View post on imgur.com

    Website is also working fast on my smartphone.
    Also searching using Ajax Search Lite plugin is slow (around 10 seconds for the results). Searching via website.com/?s=something is faster (like 3 seconds).

    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    Moderator James Huff

    (@macmanx)

    We don’t offer private support.

    If you need that, please try https://jobs.wordpress.net/ and do not accept any hire or direct access offers posted to these forums.

    As for checking from another device, I meant posting. Is it just as long on both your mobile device and computer?

    Thread Starter r3crac

    (@r3crac)

    As for checking from another device, I meant posting. Is it just as long on both your mobile device and computer?

    I have checked from smartphone. Still > 10 seconds of waiting.

    Thread Starter r3crac

    (@r3crac)

    How can I repair and optimize database? Maybe it’s database fault… In PHPmyAdmin/Mysql Bench I’m getting an error (repair table 75b_posts Error Code: 2013. Lost connection to MySQL server during query 30.498 sec) and database gets corrupted (I need to restore it from backup).

    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    • This reply was modified 5 years, 7 months ago by r3crac.
    Thread Starter r3crac

    (@r3crac)

    Hello,
    optimizing and repairing database did not help. Changing from InnoDB to MyISAM did not help. Any ideas?

    Thread Starter r3crac

    (@r3crac)

    I think problems is solved by removing very long post with the same character (in my case it’s “‘” character). The very long post was made by mistake with automatic software. Post looked like this:
    Title: Something””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””’…even longer…””””””’

    Content: Same thing””””””””””””””””””””””””””””””””””””””””””’…super long””””””””””””””””””””””””’like 35 MB in one post!”””””””””””””.

    After removing these characters website is normal now.

    fgalizia

    (@fgalizia)

    I’m not sure if this will work on your end, but on our website the following action hooks were causing publishing posts to run very slow.

    add_action( ‘publish_post’, ‘nstein_categories’ );
    add_action( ‘publish_post’, ‘nstein_concepts’ );
    add_action( ‘save_post’, ‘nstein_comparediv’ );
    add_action( ‘publish_post’, ‘nstein_related’ );

    After commenting them out in functions.php , the issues got fixed immediately.

    I hope it helps someone.

    • This reply was modified 5 years ago by fgalizia.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Slow post updating (wp-admin/post.php)’ is closed to new replies.