-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
I've just found that if a query is wrapped inside a transaction, IdentityCache will call the database directly
identity_cache/lib/identity_cache.rb
Line 151 in 8fcaa32
| if should_use_cache? |
However, in my case, there are some models doesn't need this (read a lot and rarely write)
Is there an option to skip this feature? Eg:
class TestModel < ApplicationRecord
include IdentityCache
skip_transaction: true
end
hvogo
Metadata
Metadata
Assignees
Labels
No labels