APIv4 - Store entity info in metadata cache
authorColeman Watts <coleman@civicrm.org>
Thu, 24 Jun 2021 20:09:33 +0000 (16:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 25 Jun 2021 02:00:17 +0000 (22:00 -0400)
commit2ddaad96338ff0b738d2c396d30eb25be8be71ea
treeabb43cd6dbeae92037307aec93135600f25a57ff
parent055a3b1829a1f9766076e5fe42d7227c1d504381
APIv4 - Store entity info in metadata cache

Note that this caches the info returned by the generic function in
`AbstractEntity::getInfo()` and some entities override that function.
However the overrides generally call the parent and do not perform any expensive
computations of their own, so this seems like the best spot to add caching.
Civi/Api4/Generic/AbstractEntity.php