Bugs: Browse | Submit New | Admin
I'm running rails 1.2.3 with cached_model 1.3.1 and postgresql. The PG adapter does NOT always add "LIMIT 1" to the SQL query when retrieving a single object. This causes the regexp to fail and the model to never get cached. The bug is in line 149 of cached_model.rb. A patch for cached_model.rb is attached, though I have NOT run any regression tests with the updated Regexp.
Add A Comment: