Forums

Media File Sizes
Suggestion for performance (3 posts)

  1. th23
    Member
    Posted 9 months ago #

    Hi,

    first of all thanks for this very handy plugin - I would have expected something like that being core of WP, but very cool somebody took care of it :-)

    However, one suggestion regarding performance: Maybe you can add a check around the whole code whether a user is on the admin site...so for "normal" visitors there is no need to register all your actions.

    if(is_admin()) {
      // your whole plugin code
    }

    Not sure, if that makes a big difference, but maybe for sites used heavily it does...

    http://wordpress.org/extend/plugins/media-file-sizes/

  2. MadtownLems
    Member
    Posted 9 months ago #

    Thanks for the post. It's actually something I was looking into doing with a future release anyway after reading about separating admin/public stuff somewhere recently. Look for this in a future version!

  3. MadtownLems
    Member
    Posted 5 months ago #

    And by a future version.. I mean the one that's out right now! :D

    Thanks again

Reply

You must log in to post.

About this Plugin

About this Topic