Flush the caches before we output so we don't overrun PHP memory limit.