From 37547b7748551b01757cc4fb09ebd35d75067835 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 12 Jun 2013 15:04:42 -0700 Subject: [PATCH] More thorough cache clearing CRM-12464 ---------------------------------------- * CRM-12464: Add PseudoConstants to Schema Metadata http://issues.civicrm.org/jira/browse/CRM-12464 --- api/v3/Generic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/Generic.php b/api/v3/Generic.php index 9c62f9d01a..13efcc119c 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -23,6 +23,7 @@ function civicrm_api3_generic_getfields($apiRequest) { if ((CRM_Utils_Array::value('cache_clear', $apiRequest['params']))) { $results = array(); // we will also clear pseudoconstants here - should potentially be moved to relevant BAO classes + CRM_Core_PseudoConstant::flush(); if(!empty($apiRequest['params']['fieldname'])){ CRM_Utils_PseudoConstant::flushConstant($apiRequest['params']['fieldname']); } -- 2.25.1