tlovett1/custom-contact-forms — pull request #1 by Steren (2013-02-12 16:51:41+00:00)
Title: Do not add a session ID for all pages: cache friendly

As described at http://wordpress.org/support/topic/ccf-not-cache-friendly:

The implementation of CCF forces caching to be bypassed even on pages WITHOUT forms.
THE PROBLEM:

The function ccf_utils::startSession() creates a PHP session and sends back a cookie to the browser. This is needed for things like CAPTCHA and other features.

Because of the cookie for the PHP session, headers are sent back to the browser and the caching servers to prevent caching of the page.

Because ccf_utils::startSession() is in frontInit, a session is created on EVERY PAGE. However, it ISN'T needed when there is no form on the page.

Making the changes above means that a session is only initiated if/when there's a form on the page.

Hope that helps others trying to make their site as speedy as possible