Experimental project

This is a sandbox project, which contains experimental code for developer use only.

When a normal naive admin user of Drupal sets the "Cache lifetime" in the performance page to, say, 12 hours, they pretty much expect their Pages to be cached for, well, 12 hours.

Instead, they are wiped from the cache the next time cron.php is run.

The issue has been chewed over pretty thoroughly in these places:
http://drupal.org/node/739320
http://drupal.org/node/1094372
http://www.metaltoad.com/blog/how-drupals-cron-killing-you-your-sleep-si...

I am not going to attempt to repeat all of those, nor un-wind the backend cache implementations etc.

I am going to submit a one-line D6 bug-fix patch for your review that has Pages honoring the cache_lifetime as the naive admin user would expect, based on the GUI/words on the Performance page.

There is probably something inherently wrong with this patch, or it would have been done...

Either that, or it's sheer genius in its simplicity :-)

This is for D6 includes/common.inc

It worked for me in a crude ab -n 1000 -c 100 series of loadtests overnight to change a 99% failure rate to 100% success rate.

But our sites are stupid simple with not much dynamic content, so that's not really much of a test.

Project information