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.
The function field_group_info_groups() when called with $reset set to TRUE clears ALL CTools caches, and not just the caches relevant to the field_group module. This is an issue on sites I maintain, as the field_group_info_groups() function is called when rebuilding certain views, which results in parts of the views being lost.
The attached patch fixes this issue.
Comment | File | Size | Author |
---|---|---|---|
field_group__module__prevent__complete__ctools__cache__clear-UNKNOWN-1.patch | 803 bytes | sdrycroft |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedhow can you test this?
Comment #2
sdrycroft CreditAttribution: sdrycroft commentedClearing a sites cache should be sufficient to test this. If you have any hook_views_default_views() functions, include a call to field_group_info_groups() in one of them, and watch how this function clears the views cache.
Besides, simply reading the code should be sufficient to see what has been changed, and that the code before was incorrect.
Comment #3
nils.destoop CreditAttribution: nils.destoop commentedThx for noticing. The patch has been committed to dev.
Comment #8
nils.destoop CreditAttribution: nils.destoop commented