WP-Cache Bug Strikes Back: Site Down 17 Hours

In case you visited the site a few hours back, it was down with internal server errors. Unlike last time when the site was down 36 hours, this time I knew what the problem was and as soon as I disabled Wp-cache, the site was instantly back online…

QOT server errors

See in the image above how the site downtime occured. I had recently upgraded to the new wordpress 2.3 and decided to give wp-cache another try forgetting the site downtimes issues it had caused the previous time. The site worked fine for the last 2 days, and I thought that wp-cache and wordpress 2.3 finally worked well together. After all Wp-cache is a very fast cache module (is highly recommended for shared web hosting users), and can easily help your shared server survive a slashdotting or Digg effect better.

The problem was same as before. The cached and expired pages were of the same number and that somehow interfered with the functioning of the plugin, preventing further caching and deletion of expired pages also.

cache contents

I simply disabled the plugin, emptied the cache and expired pages and deactivated the wp-cache plugin and the site was instantly back online. I hope the plugin author fixes the issue. Have you encountered a similar problem with WP-cache?

Share with friends

16
Leave a Reply

avatar
16 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
11 Comment authors
ArekAjinkyaMartijn de VisserBeetlejuiceRobert Accettura Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Ryan Wagner
Ryan Wagner

Nope, I haven’t ever had that issue. We’re currently running WordPress 2.3 as well with the latest version of wp-cache.

Gary
Gary

Your first mistake was upgrading to 2.3, which is a plugin serial killer.

QuickOnlineTips
QuickOnlineTips

I have been encountering this issue for the last one year. Wp-Cache works well, but when cached pages = expired pages – the site stops.

Ashish Mohta
Ashish Mohta

HiPC,

I did face this problem but initially when started using it, Guess with 2.2 but then disabling and enabling of the plugin worked again.

My number of pages were not similar but then the caching was stopped.

Ashish

QuickOnlineTips
QuickOnlineTips

You are right Ashish. Once you disable and enable the plugin it works well again…. but you never know when the bug will strike again. I found out after 17 hours and fixed it; if I am on vacation, the site may be down for days!

Shivaranjan
Shivaranjan

PC-
My suggestion would be use it when your site gets dugg or slashdotted rather than every day.

QuickOnlineTips
QuickOnlineTips

“Use it when your site gets dugg or slashdotted rather than every day.” – now that is a great idea Shivaranjan. It works for me that way… :-)

Armen
Armen

I think the problem would be fixed by simply clearing the cache every so often. If that could be automated, then that would probably fix the issue.

QuickOnlineTips
QuickOnlineTips

Armen – The WP-cache is set to clear every 1 hour by default. Maybe setting it up to a lesser time of half an hour might help. But the issue of cached pages = expired pages will still occur, though at a lower page number.

Armen
Armen

Oh right…
That’s an interesting bug.

Shivaranjan
Shivaranjan

You can use it in this same way until the plugin author fixes the bug. :)

Robert Accettura
Robert Accettura

I’ve hard of this bug before but never seen it myself. It sounds as if the age of the cache isn’t being correctly handled.

wp-cache seems to use filemtime(), making me wonder if this is an issue mostly for those who use webhosts that mount their filesystem using NFS, or have some sort of file caching mechanism in place that can cause funny behavior from time to time.

Beetlejuice
Beetlejuice

Dreamhost have a fix for this problem in their Help pages:

1. Open /wp-content/plugins/wp-cache/wp-cache-phase2.php file* in your favourite text editor, where is the domain that you’re having troubles with EG: dreamhost.com/wp-content/plugins/wp-cache/wp-cache-phase2.php
2. Alternatively if that file is not in that location for some reason you can issue this command to find it from the directory: find . -name wp-cache-phase2.php
3. Locate the wp_cache_ob_end function
4. then inside that function find the line with: ob_end_clean(); (it should be line 219 or about)
5. and finally replace that line with: ob_end_flush();

http://wiki.dreamhost.com/WordPress#Blank_Pages

Martijn de Visser
Martijn de Visser

I have encountered the same issue, especially after changing a post or page, WP-Cache sometimes seems to make my WP installation unresponsive. Disabling it and then manually removing all files from the ‘cache’ folder and the ‘advanced-cache’ link (using FTP) helps, but is of course far from ideal. Hope this can be fixed in a future release.

Ajinkya
Ajinkya

I had encountered this issue for the most of the times ,when i was using freehostia , these wp bugs will take a lot of time, finally happy with blogger !

Arek
Arek

I just had the same blank page problem, only I can’t find wp_cache_ob_end function

It must have been changed in the previous version of WP cache (I’m using WP Super Cache 0.9.8)