APIv4 - Cache SchemaMap in Civi::cache('metadata')
authorColeman Watts <coleman@civicrm.org>
Thu, 28 Oct 2021 19:06:46 +0000 (15:06 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 28 Oct 2021 19:06:46 +0000 (15:06 -0400)
commitb1b4a32ca0d1cbee4794964c1ac9812c19564e5a
tree1f36337a36f8a18eea38286ee365f5a9d265ff65
parent0e3ab56867d4f886c00f29020940eff71a7fc73f
APIv4 - Cache SchemaMap in Civi::cache('metadata')

When adding/removing custom groups, the schema map changes.
Civi already flushes the metadata cache when this happens,
but the APIv4 SchemaMap was being cached in memory (in a container service).
This changes it to be stored in the metadata cache like everything else.
Civi/Api4/Action/Entity/GetLinks.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Utils/CoreUtil.php
Civi/Api4/services.xml