Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
list_allowed_values() has a static cache that cannot be cleared. I guess it only needs to be cleared when a field's allowed values changes and that can only happen during field_update_field() which, incidentally, isn't written yet. But when it is, this function will need to be fixed.
Comments
Comment #1
yched CreditAttribution: yched commentedBeen fixed meanwhile.