The cmrf_view definitions are not cached

Created on 24 November 2023, about 1 year ago
Updated 26 November 2023, 12 months ago

Problem/Motivation

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.

Proposed resolution

Cache the data, but ignore the cache when $reset is true.

To consider

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.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024