200+ DB Queries & 14 MB RAM added when plugin is enabled.
-
Let me begin by saying that WP Offload Media Lite works, and does exactly what it says on the box.
However, now that I’ve just started using the plugin with my website I have found some worrying results.
I use the excellent Query Monitor to keep an eye on my website’s performance, and I’m dismayed to what happens after I enable this plugin.
As mentioned in the title, I have seen an increase in both the number of DB queries and the RAM usage for a page where an offloaded media item is shown. To wit, 200+ Database Queries (of which many are duplicate), and 14 MB of RAM.
What’s more confusing is even on pages where there are NO OFFLOADED MEDIA ITEMS, I am seeing ~200 DB queries and 5~6 MB of extra RAM all coming from WP Offload Media Lite.
Surely if the media URLs are re-written to be served from Amazon S3 in the DB, there shouldn’t be any need for so many queries?
How I tested these findings:
- 2 Different Pages.
One with offloaded media, and one with locally stored (default) media. - Activated/Deactivated Plugin.
I activated and deactivated the WP Offload Media plugin each time. - 10 Times.
Each of the 2 different page types were loaded 5 times with the plugin enabled, and 5 times with the plugin disabled; this makes a total of 10 page loads.
The results were consistent each time. Every time WP Offload Media was enabled, I saw an unreasonable increase in the amount of DB queries and RAM usage. Query Monitor also clearly pointed to this plugin as the culprit.
For the moment, I have disabled the plugin, and I will wait for a response from the support team. Hopefully this gets resolved as I would love to continue using the plugin.
- 2 Different Pages.
- You must be logged in to reply to this topic.