Support » Everything else WordPress » index.php is creating a load issue on the server

  • Hi everyone!
    according bluehost following index.php is creating a load issue on the server
    the index.php is:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./info/wp-blog-header.php’);
    ?>

    although WP 2.3.2 have been installed on ./info and it works fine
    I did not have any problem before
    I did not make any changes on my blog, only added a few new posts each week, I don’t what could be caused the problem
    any idea& tips??

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

    (@otto42)

    WordPress.org Admin

    This tells us nothing, *ALL* WordPress traffic goes through the index.php.

    You need to figure out what you have that is actually creating the load issue.

    but how to figure up what caused load issue ?
    my main index.php looks as following, I wonder if this construction
    could caused problem?

    <?php get_header(); ?>

    <div id=”content”>
    <div id=”content-main”>

    <?php $posts = get_posts( “category=8&numberposts=14” ); ?>
    <?php if( $posts ) : ?>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”>
    <?php the_title(); ?>
    </h2>
    <div class=”entry”>
    <?php the_content(‘» » »’);?>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>
    <?php $posts = get_posts( “category=3&numberposts=5” ); ?>
    <?php if( $posts ) : ?>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”>
    <?php the_title(); ?>
    </h2>
    <div class=”entry”>
    <?php the_content(‘» » »’);?>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>

    <?php $posts = get_posts( “category=4&numberposts=5” ); ?>
    <?php if( $posts ) : ?>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”>
    <?php the_title(); ?>
    </h2>
    <div class=”entry”>
    <?php the_content(‘» » »’);?>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>

    <?php $posts = get_posts( “category=7&numberposts=24” ); ?>
    <?php if( $posts ) : ?>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”>
    <?php the_title(); ?>
    </h2>
    <div class=”entry”>
    <?php the_content(‘» » »’);?>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    but how to figure up what caused load issue ?

    Well, looking at what pages get the most hits on your site would be a start. Without knowing what people are looking at on your site, you can’t figure out how to reduce load on it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘index.php is creating a load issue on the server’ is closed to new replies.