I love media tags, but the multiple get_posts calls with the lack of efficiency forced me to make some alterations to the core script to implement a single custom query and remove a handful of others. The result was a base time change (in my scenario anyway) of a 12 second script time to about .5 second script time. If anyone is interested contact me and I’ll send you the script update.
I am experiencing the same issues with Media Tags on a couple of my sites. Have you contacted the plugin author and sent along your edits to them? Hopefully, you have because it really sounds like this should be implemented into the plugin core.
Would love to see what you have done converting the queries. Can you provide github or zip archive of the changes? Trying to update Media-Tags. I know the old queries are all pre-custom post types era.
If you don’t want to post here you can email me direct to
paul [at] codehooligans.com
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Fix for slow get_attachments_by_media_tags function’ is closed to new replies.