WordPress.org

Ready to get started?Download WordPress

Ideas

delete unused image sizes

  1. Jam Viet
    Member

    12345

    So if we use this method, we have to recode to database all the time image query, so it can be slowdown the page ?

    Posted: 4 months ago #
  2. syrupcore
    Member

    12345

    Agreed. Core feature please. Can't even imagine how many files are in the uploads folder for a 6-7 year old site that updates the design every year or so!

    Here's a way to do it that considers whether or not the old image size is included in a post (spoiler, not trivial!): http://wordpress.stackexchange.com/questions/135969/how-do-i-delete-all-generated-images-from-my-server-except-those-currently-used

    As a precaution, wp could dump them all into /uploads/deleted and then use redirects/htaccess to check there if an image is requested that it can't find.

    Posted: 1 month ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    24 Votes
  • Status

    This idea is under consideration