Support » Plugin: Fix Media Library » Ability to scan month-by-month

  • Resolved GeekyJules

    (@geekyjules)


    Hi,

    I was wondering if there is some custom code that I can add that would enable to ability to run the scans by selecting a specific year/month, also if it’s possible to add it to an upcoming update.

    On very large sites with 100s of thousands posts and images, doing it bulk posses a number of issues.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wowpress.host

    (@wowpresshost)

    Hi,

    Well, it’s possible to limit images audit to some specific folder and pass through only attachments linked to images of that path, but “Images with weak references” and “Unreferenced Images” analysis require of course to pass through all database posts anyway to find out if some post has a link to image, so not sure if that will help a lot.

    What do you think?

    That limit is about larger change any way, but most time-consuming process is thumbnails regeneration. Those can be limited via simple fix in
    maybe_regenerate_metadata method in ProcessPost.php by adding condition based on $filename parameter, like:

    
    if ( ! is_filename_in_path_of_interest( $filename ) ) {
        return;
    }
    
    • This reply was modified 2 years, 11 months ago by wowpress.host.
    • This reply was modified 2 years, 11 months ago by wowpress.host.
    • This reply was modified 2 years, 11 months ago by wowpress.host.
    • This reply was modified 2 years, 11 months ago by wowpress.host.
    Plugin Author wowpress.host

    (@wowpresshost)

    Mark it as resolved since you don’t react. Hope it helped.

    How can I do this? I want only check files after specific ID or after date.

    Please help me out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ability to scan month-by-month’ is closed to new replies.