How to schedule a cron event to run ShortPixel Image Optimizer
By default, ShortPixel Image Optimizer (SPIO) only optimizes images if one of these pages is open on your browser. But what happens if you don't have the time (or will) to do it? You can always schedule SPIO to run even when your computer is off. Just follow these instructions.
- Install and activate the WP Crontrol plugin.
- Go to Tools > Cron Events and then click on "Add New".
-
In the Hook Name field, enter
shortpixel/hook/processqueue
. -
In the Recurrence field, select how often you want ShortPixel to process your images (we recommend once hourly).
-
Leave the rest of the fields as they are. It should look like this:
-
Click on "Add Event".
After doing this, the newly uploaded images should get processed by our plugin every hour, and you won't even need to log in to your WordPress site.