• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Search & 404 pages crushing site

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Search & 404 pages crushing site

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by ᴅᴀᴠɪᴅ.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 2, 2017 at 8:34 pm #212109
    sashman
    Member

    Client wanted a genesis theme for their site so we loaded it up for them. It seemed to work well out of the box, but when we put it live noticed that search and it's 404 pages were taking about 30x as long as it's predecessor -- 2sec vs 60sec+. Too many 404s and the site goes down due to OOM (the vm has 32gb). If you revert themes, everything works fine. The theme **has** to be doing something behind the scenes with search. Every other component runs fine. The site in question has half a million comments, and close to 30 thousand articles -- not a small site. I'm a little concerned that the genesis theme wasn't made with large sites in mind. Something is seriously wrong.

    Thanks!

    October 2, 2017 at 9:41 pm #212111
    sashman
    Member

    To answer my own question and hopefully to help someone else, we went ahead and ran a profiler against the genesis code. The issue was in the 404.php :

    __( 'Sitemap', 'genesis')

    This code was running genesis_get_sitemap, which was trying to create a sitemap .. every time a 404 was called. So, not really made for large sites. To fix, you can copy the 404.php over to a child theme and comment out :

    //if ( genesis_a11y( '404-page' ) ) {
    // echo '<h2>' . __( 'Sitemap', 'genesis' ) . '</h2>';
    // genesis_sitemap( 'h3' );
    //} else {
    // genesis_sitemap( 'h4' );
    //}`

    October 2, 2017 at 10:16 pm #212112
    ᴅᴀᴠɪᴅ
    Member

    Or use Genesis 404 plugin, which takes away the site map and allows you to just add some content to the 404 page.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble