mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
4e66158fb7
With this change, `undefined` outcomes of complete rule evaluations are now also cached. Previously, only defined results had been cached, and empty partial sets/objects. In the case of partial rules with string keys, the introduction of ref heads changed how they had been evaluated: Before, they had been evaluated as partial sets, and thus got cached when empty. After, they had been evaluated as complete rules (with ref heads), and if they were undefined, they had _not_ been cached. This caused a performance regression. Fixes #593. Signed-off-by: Edward Paget <edward.paget@chime.com>