Flush the caches before we output so we don't overrun PHP memory limit.
Merge pull request #264 from jordandukart/7.x

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