• Resolved stevenjuguna

    (@stevenjuguna)


    Greetings, is it possible to add cron-job functionality to your plugin? I run a tech news aggregator site (https://encodde.com) and it’s quite cumbersome manually running resizing tasks. Is it possible to automate the tasks to run after a predefined period like 1 hour?

    Also, is there a way your plugin can only filter specific images sizes i.e 1MB and above? I have some particular large images which i would love to deal with first before resizing in general.

    • This topic was modified 4 years, 10 months ago by stevenjuguna.
Viewing 1 replies (of 1 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    You can run Imsanity via cron using the wp-cli commands introduced in the last release:
    wp help imsanity resize

    Otherwise, see if they can trigger Imsanity directly in the aggregator plugin, that would be the most ideal route.
    It normally runs on the wp_handle_upload hook.

    • This reply was modified 4 years, 10 months ago by nosilver4u.
Viewing 1 replies (of 1 total)
  • The topic ‘Add Cron Job Functionality to you plugin’ is closed to new replies.