Skip to content
Snippets Groups Projects
Commit be80e977 authored by colemanw's avatar colemanw
Browse files

Fix OptionGroup::values cache CRM-12464

----------------------------------------
* CRM-12464: Add PseudoConstants to Schema Metadata
  http://issues.civicrm.org/jira/browse/CRM-12464
parent 8972e262
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,7 @@ class CRM_Core_OptionGroup {
$localize = FALSE, $condition = NULL,
$labelColumnName = 'label', $onlyActive = TRUE, $fresh = FALSE, $keyColumnName = 'value'
) {
$cache = CRM_Utils_Cache::singleton();
$cacheKey = self::createCacheKey($name, $flip, $grouping, $localize, $condition, $labelColumnName, $onlyActive, $keyColumnName);
if (!$fresh) {
......@@ -111,7 +112,6 @@ class CRM_Core_OptionGroup {
return self::$_cache[$cacheKey];
}
// Fetch from main cache
$cache = CRM_Utils_Cache::singleton();
$var = $cache->get($cacheKey);
if ($var) {
return $var;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment