Action Cache plugin bug fixes

I’ve just checked in three fixes for the action_cache plugin.

  1. Don’t send cookie headers when serving cached responses (the original response will be untouched)
  2. Always use 2 cache fragments for action cache entries. This avoids the escape/unescape overhead for the body and speeds cache serving up and reduces the code complexity a little
  3. Remove use of the returning method. Older versions of Rails don’t have this method.

I’ve also added a specific page to this site for details about the action_cache

Thanks to Paul Haddad and Timur Vafin for bug reports.