• This has become the bane of my existence.

    http://www.synnematic.com

    This is a friend’s website with 9,998 pages.

    He’s to the point now where in the WP Admin the ‘Pages’ section takes anywhere from 475-500 seconds to load. WAY TOO LONG. For this to continue as a movie review website the ‘Pages’ sections NEEDS to be much, much faster again.

    I’ve done everything under the sun from disabling plugins, trying different themes, paying for a virtual private server, paying GoDaddy tech to optimize MySQL, and tweaking such files as wp-config.php, php.ini, etc. I’ve increased the max memory to 500MB, I’ve increased the maximum execution time to 5000, and have even tried different “cure-all” plugins.

    The last support rep. gave up and simply said for me to find someone here locally to take care of the problem. Not going to happen.

    PLEASE HELP.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Why so many Pages?

    WordPress is not built to handle thousands and thousands of Page entries. The maximum number should be closer to 80, maybe even a couple hundred. Yes, you can indeed do lots of Pages, but as you have found, it doesn’t scale well.

    You might consider redesigning so as to not make that many Pages, and to make them into Posts or some other custom post type that will scale better for your needs instead.

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    Are there any other alternatives out there to WordPress that could handle this content load any better? Or is it primarily a pages vs posts situation.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If you were doing this as posts, you’d have no real problem scaling, I’d say.

    Also, how many Pages are you trying to show on the admin screen at once? If it’s like, all of them, then that’s your problem. Scale it back to 20-40 or so per page.

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    I suppose you’re right.

    It’s going to be quite the undertaking to convert these all to posts.

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    Any other thoughts, solutions?

    Do a MySql search and replace, you could change the pages to post in less than an hour. Easiest thing to do is download from phpmyadmin change then reupload. πŸ™‚

    As mentioned by maximusmccullough, a quick way would be to change the post_type in mysql.

    But if that’s too technical, you might just want to try a plugin, such as the one here:
    https://wordpress.org/plugins/convert-post-types/

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    Any “easy” explanation of changing the post_type in MySQL?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Before you go mass changing things, find out what the actual bottle neck is.

    Do you have any slowdowns on the front-end of the site? Or is it just the Pages screen in the admin? What is the “Number of items per page:” set to on that screen?

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    Just the pages section in WP Admin. The front of the site works just fine.

    I’ve also messed around with the set number displaying per page and it makes little difference.

    If I were to convert pages to posts how can I do so without losing the genre of movie that film/page is tied to? Or would I have to re-categorize everything?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Changing them to Posts is a big major deal. So, let’s leave that option until the last, eh?

    This is developer heavy stuff. Basic debugging 101 though.

    First, I would get a copy of your site in a developer test system. Like, make a local copy of the site using MAMP or XAMPP and get it running. Confirm that the same problem exists.

    Next, I would install the Debug Bar plugin on the test site: https://wordpress.org/plugins/debug-bar/

    Third, I’d add these lines to the wp-config.php file on the test site:

    define('WP_DEBUG', true);
    define('SAVEQUERIES', true);

    Finally, I’d visit the test site page that has the problem, and after it’s done loading, I’d select the Debug option in the menu bar on the top right. This will show you all the SQL queries being run on that page, and how long they took. The query causing your slowdown will give you more information about how to solve the problem.

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    Developer heavy stuff lol

    I’ve not ever done something like this before but am willing to give it a go.

    Assuming the test site reproduces the same problem (slow loading Pages section in WP Admin), what do I do with the debug results?

    I just looked the Debug Bar’s results for the Pages section and it’s HUGE.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That’s the thing about debugging. You don’t know where the problem is, the goal is to find it.

    Look at the queries and see which ones take a long time. The debug bar plugin shows the queries and the times they take to run. Look for a long running one.

    Thread Starter kingdomhorizon

    (@kingdomhorizon)

    I can see that the ‘update_meta_cache()+’ Caller from wp_0ysjxhfgv5_postmeta is the largest set of queries because it contains all the page ID’s.

    This (in red numbers) was 0.4411.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘About ready to give up on this’ is closed to new replies.