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.
beautytips_manager_get_custom_tips caches disabled tips, wasting time and memory on our system. the function could change to cache only enabled tips and the management page could be changed to select all direct. The management page would then get everything while the more frequently used pages would get only the enabled tips.
Comment | File | Size | Author |
---|---|---|---|
#1 | beautytips_cache.patch | 1.85 KB | peterx |
Comments
Comment #1
peterx CreditAttribution: peterx commentedThought I would work on a patch. First change the code to have the cache name defined in one place.
Then move the cache clear all to one place. Cache clear all is used in at least two places. Also my add-on module uses the cache clear all function, the main reason why I moved it out to a separate function.
Comment #2
pifagor