rails/rails — pull request #6985 by sidonath (2012-07-06 13:05:43+00:00)
Title: Disable query cache for lock queries

Query caching should be disabled for queries asking for a pessimistic lock. Otherwise the lock query may not reach the database, thus breaking the expected functionality.

Fixes #867