• Resolved betauser01

    (@betauser01)


    Hello!

    I have a few questions regarding your plugin.

    1. Can the plugin be used to remove photos of already deleted posts?

    2. “The additional checks before the automatic removal can be disabled from the Media Settings for improved performance on large websites with thousands of posts and media files.” – How do these additional checks slow down such large websites?

    3. “The plugin only removes files tracked by WordPress. Some poorly coded themes generate additional thumbnail sizes that are not tracked by WordPress and this always leads to orphan files left on your server.” – How can I check if the extra thumbnail image generated by my theme are tracked by WordPress?

    Many thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Eusebiu Oprinoiu

    (@eusebiuoprinoiu)

    Hello!

    1. Unfortunately, no. When a post is deleted, all media files that were previously attached to it become unattached. (the parent-child relationship no longer exists)
    If you were hoping to remove orphan files that are no longer used, you would need a different method to identify them.

    2. The additional checks use multiple recursive queries. The more content and media files that need to be checked, the longer it takes for the script to complete. At some point, you will start hitting various server limits. (this is not an issue if you deactivate the additional checks, but the plugin will no longer check to see if your media files are used in multiple locations)

    3. This used to be a problem 7-10 years ago when many theme developers relied on third-party image resizing scripts like TimThumb and Aqua Resizer. Unless you are using a very old theme, you don’t need to worry about this.
    You can check if your theme leaves any junk behind via FTP.
    – Create a new post
    – Upload a new image and set it as the Featured Image
    – Check you /wp-content/uploads/ via FTP and see what thumbnails are generated
    – Delete the image and check again via FTP if any orphan thumbnails have been left behind

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Can it remove photos of already deletes custom posts?’ is closed to new replies.