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.
On line 14 and 15 in the uc_discounts.module, we find these two lines:
define('UC_DISCOUNTS_YES', t('yes'));
define('UC_DISCOUNTS_NO', t('no'));
This is really bad for performance.
Calling t() in globale scope forces a call to locale_refresh_cache for every page view.
We have just changed it to this for now:
define('UC_DISCOUNTS_YES', 'yes');
define('UC_DISCOUNTS_NO', 'no');
Comment | File | Size | Author |
---|---|---|---|
#1 | bad_performance.patch | 2.33 KB | dawehner |
Comments
Comment #1
dawehnerthis is something very bad, plese fix it
Comment #2
dawehner