Reputation: 349
I was just wondering and didn't find explicit response on what in the model class (ActiveRecord) is cached when setting config.cache_classes to true ?
Could someone tell me or point me to the doc I didn't found ?
Thanks
Upvotes: 22
Views: 12705
Reputation: 10398
What is cached when using
config.cache_classes = true
It responsible for two thing in rails 4
1. It prevent class reloading between requests.
2. It ensure Rack::Lock
in not included in middleware stack
, so
that your thread don't get locked.
Upvotes: 0