Thomas Dalton wrote:
One particularly irksome issue is "blank pages" -- when PHP dies due to a bug or hitting a memory or time limit, you just get blank output. When this comes before we've set our cache-control headers, the current Squid settings mean that gets cached and shown to everybody else who comes to that page.
You can't modify the Squid code to include "IF size>0 THEN cache() ELSE end"?
That would solve some cases, but not others (where output is made but headers are missing). Additionally it would be a lot harder, requiring patching of C code and a rollout of new packages sitewide.
Or I could put one line of code in a PHP file and be done with it.
-- brion