-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Query
-
Fully Compatible
Similar to how Mongoid provides QueryCache Middleware, it would be nice if Mongoid provided a way to blanket-enable Querycache for ActiveJob (per-job)
This could be done using theĀ around_perform callback
https://edgeguides.rubyonrails.org/active_job_basics.html#available-callbacks