- Issue created by @kainuk
- Status changed to Fixed
12 months ago 6:55pm 26 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
The cmrf_views/src/CMRFViews.php has a method getViewsData that reads definitions of all the CiviCRM Api's that are used. This data is not cached, making the method expensive if many views are defined on the CiviCRM api. The getfields is definition data, and is always the same, if there is no development on the portal, so it is a good candidate for caching. It has even a $reset variable that suggests caching.
Cache the data, but ignore the cache when $reset is true.
The effect for the end user is that the application becomes faster, the developer can experience that his api definitions are to up do date. Refresh the cache will help (and is for some developers part of their standard routine.
Fixed
2.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.