This project is archived and is in readonly mode.

#1108 ✓resolved

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:

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=""></a>

Referenced by