X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FOptionGroup.php;h=250c93cff309723831aec292d907c1066d97aec0;hb=7c990617d04cdb233309f428d94e4be3bf3b57e3;hp=89c8eb13d97ae630122f725bb287e2cf6ae889a5;hpb=005658260bf9695127d5b05a847d9d37b2c8e123;p=civicrm-core.git diff --git a/CRM/Core/OptionGroup.php b/CRM/Core/OptionGroup.php index 89c8eb13d9..250c93cff3 100644 --- a/CRM/Core/OptionGroup.php +++ b/CRM/Core/OptionGroup.php @@ -676,6 +676,12 @@ WHERE v.option_group_id = g.id ); } + /** + * Flush all the places where option values are cached. + * + * Note that this is called from CRM_Core_PseudoConstant::flush() so we should resist + * the intuitive urge to flush that class. + */ public static function flushAll() { self::$_values = array(); self::$_cache = array();