As part of the WordPress 6.1 release, wpdb::prepare() has been updated so it can escape Identifiers (such as Table and Field names) with the %i placeholder (#52506). This ensures these values are escaped correctly and don’t lead to SQL Injection Vulnerabilities. Example $table = ‘my_table’; $field = ‘my_field’; $value = ‘my_value’; $wpdb->prepare(‘SELECT * FROM %i WHERE %i = %s’, […]
Improved PHP performance for core blocks registration
Early block.json Registration Method Starting with WordPress 5.8, extenders were encouraged to begin to utilize block.json to register blocks through a unified registration process. The benefits offered by this update provide consistency and convenience when registering blocks through PHP or JavaScript. However, while this block.json scanning convention is extremely convenient, it does add additional processing when core blocks are instantiated. […]
Performance Chat Agenda: 11 October 2022
Here is the agenda for this week’s performance team meeting scheduled for October 11, 2022, at 15:00 UTC. Announcements Focus area updates Images Object Cache Site Health Measurement JavaScript Infrastructure Focus area updates – @flixos90 Module proposal: SQLite – @aristath Open floor This meeting happens in the #core-performance channel. To join the meeting, you’ll need an account on the […]
Improvements to WP_Query performance in 6.1
Adding caching to database queries in WP_Query WordPress 6.1 includes an improvement to how database queries are performed in the WP_Query class, resulting in database queries will be cached. This means that if the same database query is run more than once, the result will be loaded from cache. For those using persistent object caching, this will mean […]
New cache Site Health checks in WordPress 6.1
As part of the WordPress 6.1 release, the Performance Team has added two Site Health checks (Persistent Object Cache and Page Cache). These checks were previously tested in the Performance Lab plugin. You can read more about them in the original proposal. Both checks will run only in a production environment. Persistent Object Cache This new check determines […]
Performance team meeting summary 4 October 2022
Meeting agenda here and the full chat log is available beginning here on Slack. Announcements @shetheliving: Mission and philosophies review Drafting a Handbook for our site and would like to include overall mission for the team Please review and leave comments on the doc with your thoughts Focus group updates Images @adamsilverstein @mikeschroder GitHub project @adamsilverstein: Not much […]
Performance Chat Agenda: 4 October 2022
Here is the agenda for this week’s performance team meeting scheduled for October 4, 2022, at 15:00 UTC. Announcements Focus group updates Images Object Cache Site Health Measurement JavaScript Infrastructure Open floor This meeting happens in the #core-performance channel. To join the meeting, you’ll need an account on the Make WordPress Slack. #agenda, #meeting, #performance, #performance-chat