This project is archived and is in readonly mode.
BUG: Query Cache does not handle multiple calls to find_or_create_by_*
-
findchris
Formatting fix:
User.find_or_create_by_user_id_and_name(123, "Rails") # Record created here User.find_or_create_by_user_id_and_name(123, "Rails") # Query cache hit; another record created -
Max Lapshin
Is it reproduced in 2.3.2?
-
CancelProfileIsBroken
- Tag changed from 2.2.2, active_record, cache, find, finder, find_or_create, query, query_cache to 2.2.2, active_record, bugmash, cache, find, finder, find_or_create, query, query_cache
-
Rizwan Reza
not reproducible
I created a test app and checked it. find_or_create_by works as expected.
-
Pratik
- State changed from new to invalid
Works fine for me too.
@findchris Could you please upload a failing test case if this is still an issue ?
Thanks.
-
CancelProfileIsBroken
- Tag changed from 2.2.2, active_record, bugmash, cache, find, finder, find_or_create, query, query_cache to 2.2.2, active_record, cache, find, finder, find_or_create, query, query_cache
- Milestone cleared.