Cache ContentPolicy lookup in WCMBindingsValuesProvider
Use-case:
Currently the implementation of WCMBindingsValuesProvider performs a lookup of the policies, but does not store the result. This leads to unnecessary load as this is executed again for every script execution.
Current/Experienced Behavior:
Lookup is not cached
Improved/Expected Behavior:
Cache the lookup (same as it is done for Designs)
Environment Details (AEM version/service pack, any other specifics if applicable):
Sorry, my request is not precise enough - this is about the sub-optimal implementation of the WCMBindingsValuesProvider in AEM itself that is negatively impacting the performance of the page rendering there.
This has been reported to the engineering under the internal reference SITES-18668. The product team will triage this request to verify feasibility based on the prioritization model. This post will be updated according to the Jira request status.