This project is archived and is in readonly mode.

#1108 ✓resolved
nickretallack

caching bugs in ActiveRecord#create and associations

Reported by nickretallack | September 24th, 2008 @ 11:54 PM | in 3.x

When find_or_create creates a record, it does not clear the cache like create does, causing some interesting anomalies.

Here is a quick example: http://pastie.org/278991

Enclosed is a rails app with a single test that confirms the problem.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages