Dev: gettext filter slows down
-
Hi,
thank you Jeff for the plugin, its very useful to speedup the site.While profiling my site, I found that Plugin Organizer itself has a little performance impact. Its the
add_filter('gettext', array($this, 'change_page_title'), 10, 2);
, which causes thechange_page_title
function to trigger about 5k times on some pages. this causes a delay of ~200ms.You can easily fix it by wrapping the inner condition around the add filter:
if (isset($_REQUEST['PO_group_view']) && is_numeric($_REQUEST['PO_group_view'])) { add_filter('gettext', array($this, 'change_page_title'), 10, 2); }
Can you add this to the next update?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dev: gettext filter slows down’ is closed to new replies.