Code that allows you to serve a cached page from hook_boot
http://drupalcode.org/project/esi.git/blob/68d55d81ec85d403fa6ba89f74a0e...
Not sure if you want to use it but here's my idea:
In settings.php disable the cache. In a light hook_boot enable the cache; in a heavy hook_boot serve from the cache if the cache is still enabled. If the cache was disabled then drupal proceeds as normal, and hook_boot doesn't bootstrap the rest of Drupal.

Comments

brian_c’s picture

Neat idea! Not sure if there is a place for this reverse-approach in Dynamic Cache though...

The whole idea is to make it work purely in module-land; if editing settings.php is on the table, you can disable the cache conditionally from there already.

brian_c’s picture

Version: » 6.x-1.0-rc1
Status: Active » Closed (works as designed)