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.
wysiwyg_profile_load() does a query for each text format when viewing text fields (which includes node/n pages when you have comment module enabled and the comment form on that page). Attached patch caches the results, clears it from the admin form submit, and does a single query to get all formats if there's a cache miss.
Comment | File | Size | Author |
---|---|---|---|
#1 | 826914_wysiwyg_profiles.patch | 1.85 KB | catch |
wysiwyg_profiles.patch | 1.85 KB | catch |
Comments
Comment #1
catchMinus syntax errors.
Comment #2
EugenMayer CreditAttribution: EugenMayer commentedLooks fine.
Comment #3
sunThanks for reporting, reviewing, and testing! Committed with a couple of corrections to HEAD.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.