Improve performance
-
Hi Marcin,
I use a plugin on several projects. We installed a performance profiling tool (New Relic ) on one of our sites and we detected a slowdown point in your plugin.
You use the function ‘fjarrett_get_attachment_id_by_url’ from http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/ which is not very optimized.
A query is made on all posts of the table wp_posts, or he would already be easier to target only attachments. #better #faster #stronger 😀
https://gist.github.com/asadowski10/496068291ec5ca5f3016
Thanks a lot !
The topic ‘Improve performance’ is closed to new replies.