Title: Plugin making media library extremely slow
Last modified: August 31, 2016

---

# Plugin making media library extremely slow

 *  [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/)
 * I have over 100,000 images in media library and this plugin is making my media
   library very very slow.
 * Takes 15 seconds to load media library in admin section while other pages take
   1-2 seconds.
 * The moment I deactivate this plugin, media library opens instantly.
 * Important thing to note here is, this issue is caused when W3TC plugin is active
   along with Media File Renamer. Caching is very important for a huge site and 
   W3TC is one of the best out there, hence making this plugin compatible with W3TC
   is no-brainer.
 * Furthermore, using this plugin without W3TC does cause slow load times, but they
   are barely noticeable cause its under 5 seconds. However, not a good deal when
   rest of the admin panel takes only 1-2 seconds.
 * [https://wordpress.org/plugins/media-file-renamer/](https://wordpress.org/plugins/media-file-renamer/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066592)
 * > Takes 15 seconds to load media library in admin section while other pages take
   > 1-2 seconds.
 * The fact you have 100,000 images in the database is not the problem. The plugin
   only analyzes the files you are currently displaying in your media list. How 
   many of them are you displaying? Usually it is 10 or 15 but if you display 100
   or more that could do this yes 🙁
 * > Important thing to note here is, this issue is caused when W3TC plugin is active
   > along with Media File Renamer.
 * This is strange, I have no idea how W3TC plugin could play badly with my plugin.
   The W3TC does nothing with the Media Library in the admin I believe.
 * Do you have anything in your PHP error logs by any chance?
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066614)
 * Thanks for prompt reply. I am aware of the first point you mentioned. I am viewing
   only 20 images at a time.
 * Yes it was very strange when I first found it. I deactivated W3TC and saw my 
   site operating smooth as if it never needed caching at all. Media Library was
   snappier and everything, including woocommcerce operated quick.
 * However, I have another site in which W3TC does much better job, hence I was 
   kind of sure it wasn’t W3tc problem.
 * So I started deactivating plugins that were related to Media Library and for 
   some reason, I knew Media Renamer might be an issue. The moment I deactivated
   it, Media library now opens in 1-2 seconds and so do other admin pages.
 * I don’t have any error logs, I don’t think it threw any errors as such. I couldn’t
   debug it, since my site is live. I am viewing my media in List View, 20 at a 
   time. I also happen to have this plugin [https://wordpress.org/plugins/image-autorename/](https://wordpress.org/plugins/image-autorename/)–
   I haven’t faced any issues with this, although you may want to check.
 * It might have something to do with how the plugin hooks itself up into Media 
   library and the methods it uses. I didn’t face this issue with the plugin early
   on alongside the above plugin I mentioned or W3TC for that matter.
 *  [Veken](https://wordpress.org/support/users/veken/)
 * (@veken)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066632)
 * It takes about 30-60 seconds for me to load the media library page. As far as
   I can tell only 20 images are visible on the first page, but the full list is
   4,000 pages long (~75,000 images). I don’t use W3TC but am on WP Engine.
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066666)
 * Okay, so I am not the only one affected. Veken, do you have PHP logs that might
   help the developer? And since when did you start facing this issue?
 * The plugin worked like a charm before, the following few updates have triggered
   some issues. Particularly seems to occur when one has huge amount of images.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066734)
 * > The plugin worked like a charm before, the following few updates have triggered
   > some issues.
 * Which updates do you think? The only relatively new features I have added concern
   the lock/unlock functions, but that shouldn’t slow down the process. I really
   wonder if there is something else happening here and even if you two slowness
   issues are related to each other.
 * If I was able to replicate your installs, what I would do is that I would delete
   almost all the media to see if it’s really related to the number of images, and
   not because of cross-issues between plugins and mine.
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066748)
 * Luckily I did that, and tried you plugin. I am doing a fresh install. There are
   no issues when we have less images. Not visible enough atleast. The moment images
   cross 1000/10,000 mark things get slow.
 * Also, for some reason the ajax function in wordpress suffers due to this plugin.
   I am not 100% sure, but it seems like.
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066749)
 * I have this plugin on my other site with same config, almost but the catch here
   is it has less amount of images (prolly 20). This plugin works fine on that site.
   There are no issues.
 * So it really seems like the plugin breaks down when number of images goes up.
 *  [eric2016](https://wordpress.org/support/users/eric2016/)
 * (@eric2016)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066831)
 * I can confirm the big slow-down. My team has over 10,000 images.
    We wish we 
   could use it, but the plugin renders the Media Library unusable.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066832)
 * I actually know where it comes from. The solution is a bit tricky. The best is
   to disable the “flagging”, which I think I will do. It’s in the pipeline. Better
   to make the plugin simpler, safer and faster to use and to sacrifice a little
   option I think.
 *  [eric2016](https://wordpress.org/support/users/eric2016/)
 * (@eric2016)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066833)
 * Thank you for the adding it to the pipeline!
    Can’t wait to use it.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Plugin making media library extremely slow’ is closed to new replies.

 * ![](https://ps.w.org/media-file-renamer/assets/icon-256x256.png?rev=2791577)
 * [Media File Renamer: Rename for better SEO (AI-Powered)](https://wordpress.org/plugins/media-file-renamer/)
 * [Support Threads](https://wordpress.org/support/plugin/media-file-renamer/)
 * [Active Topics](https://wordpress.org/support/plugin/media-file-renamer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-file-renamer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-file-renamer/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [eric2016](https://wordpress.org/support/users/eric2016/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-making-media-library-extremely-slow/#post-7066833)
 * Status: not resolved