Thursday, August 3rd, 2006...5:09 am by Leroy Brown

WP-Cache and the Blank Page problem

I’m a big fan of WP-Cache – in fact, it’s one of my Top 9 Wordpress Plugins.  When I first installed it though, not all was well.  I’m sure many of you have had the same problem, so I’m going to address it here, and offer the simple solution.

If, after enabling WP-Cache, all your pages fail to load, then you have a problem.  You can only see the page after you reload it – not acceptable!  Fortunately, the solution is very simple, and not very techy.  Here goes.

Open up the WP-Cache folde, and look for a file called wp-cache-phase2.php.  This is the offending file that is causing the problem.  Open it up, and do a search for “ob_end_clean()”.  Once you find it, simply replace that phrace with “ob_end_flush()”.  Save the file, re-upload it and overwrite the existing file, and you’re done.  Your pages should load flawlessly, and a bit quicker to boot.
Why is this fix necessary?  Well, WP-Cache was written for php4, and many people now have php5 on their web server.  PHP 5 needs the ob_end_flush() command to work correctly.

41 Comments

Leave a Reply