WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Super Cache] Front page of site not caching anymore (4 posts)

  1. xtophercaa
    Member
    Posted 5 years ago #

    I've been using WP Super Cache now for months, and it's been working great. Recently, I noticed that the front page of my blog is no longer caching. Interior post and category pages cache just fine, just the main index (and page 2, 3, 4 and so on).

    Since the front page of the site gets the most traffic, it is the page that I definitely wanted cached. I thought I'd check to make sure index.php was added to the accepted files, but it doesn't seem to matter.

    Thoughts?

  2. xtophercaa
    Member
    Posted 5 years ago #

    Bump. Any thoughts?

  3. mjsteinbaugh
    Member
    Posted 5 years ago #

    I think my site has the same problem. I'm hosted on Media Temple's GridServer plan.

  4. rtz
    Member
    Posted 5 years ago #

    I experienced something similar a couple of months ago. In my case it was a bug in the theme I used at the time. (Misty Look).

    In the Theme Editor, open up index.php ("Main Index Template") for the theme you are using. If there is a line "ob_start('something_or_other');" just before a foreach-loop, check if there is a "ob_end_flush();" a bit down, after the loop.

    If the ob_start() is there, but no ob_end_flush(), then that's probably the problem. The "ob_start()" opens an "output buffer", to do some adjustmens on the HTML that wordpress outputs, but since the buffer isn't explicitly closed, it breaks Super Cache, which also uses output buffers to do its work.

    I reported the bug on the support forum for the theme, but as far as I know, it hasn't been fixed yet.

    This is what I wrote at the time.

Topic Closed

This topic has been closed to new replies.

About this Topic