Performance issue with call_user_func() AtumListTable.php:820
-
Hey guys,
One of our clients is experiencing gateway timeouts on the Stock Central page, because of call_user_func() inside of /classes/components/AtumListTables/AtumListTable.php Line: 820
echo call_user_func( array( apply_filters( "atum/list_table/column_source_object/column_$column_name", $this, $item ), "column_$column_name" ), $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
It looks like this is performing some intensive logic in combination with the Stock Central module, and it’s just taking too long, and timing out.
As a workaround we changed the “Per page” to 10 (originally 20), which kind of works, but it’s still quite slow.
I can improve performance by skipping over the columns that are hidden (continuing the for-loop before call_user_func() ) but these code-changes will obviously get overwritten if we ever update the plugin. I can’t pinpoint the exact function, it seems to be a combination of the functions that are run for the calculation column s, probably the Sales per day / Sales last 14 days, etc…
Hoping you guys can look into this and work on the performance issues in a future release.
- The topic ‘Performance issue with call_user_func() AtumListTable.php:820’ is closed to new replies.